Common Problems

Docker-related issues

Changing the Docker default address pool

If after deploying MedCo you notice some connectivity problems on your machine, or on the opposite the running containers have connectivity problems, check for potential conflict between your machine networks and Docker's virtual network (e.g. with ifconfig). If you do have such conflicts, you can edit Docker's configuration to set the addresses to use. Example:
/etc/docker/daemon.json
1
{
2
"default-address-pools": [{
3
"base": "10.10.0.0/16",
4
"size": 24
5
}]
6
}
Copied!

Using Docker as non-root user

If you get such an error message while trying to execute commands as a non-root user:
1
docker: Got permission denied while trying to connect to the Docker daemon socket at ...
Copied!

Corrupt deployment after interrupting the very first loading

The very first a deployment is started, an initialization phase that can some time (2-10 minutes depending on the machine) will take place. If during this initialization the deployment is stopped, the database will be left in a corrupt state. In order to reset the database, you should delete the corresponding docker volume:
1
docker volume rm dev-local-3nodes_medcodb
Copied!
Note that the name of volume in this example is valid only for the dev-local-3nodes deployment. In other cases, use docker volume ls to retrieve the name of the volume containing the database, usually in the format <deploymentprofile>_medcodb.
Last modified 8mo ago