-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Containers of a docker stack not coming up after host reboot #2188
Comments
what is this image? where did you taken from? |
Update: |
i encountered the same issue on Server Version: 18.03.1-ce today after a power failure. |
Update: The above mentioned workaround of deleting the "/var/lib/docker/network/files/local-kv.db" file and restarting docker has been tested for more than a fortnight now and with this, we are not facing the original issue anymore. So, anyone facing this issue can probably use this workaround. This probably is a genuine issue in docker and needs to be fixed. |
+1 I also have suffered from this problem |
+1 on 18.09.6 |
+2 on 18.09.6 |
+1 on 19.03.2 with windows containers (windows server 1903 host) |
+1 on 19.03.2 with windows containers (windows server 1903 host) too |
We need to deploy a docker stack in a CentOS VM. We have a docker compose file to launch a stack with two services and one container in each of the services. One of these containers connects to two external networks.
The docker-compose.yml looks like this:
The external networks are swarm scoped macvlan networks created using below commands:
The docker stack is created using below command:
docker stack deploy --compose-file docker-compose.yml app
The Issue:
With the above configuration, docker stack comes up perfectly the first time. But, if the hosting VM goes for a reboot [or crashes and comes up again], the container that is connected to the external networks (GoOn_web service), fails to come up. Following are the errors seen in journallogs.
The other issue observed is that there is no way to clean up the network along with its config completely. The following commands were tried:
It seems like the network cleanup has some issue as well.
Please let us know if there are any workarounds for this issue or if our configuration needs some tweaking.
Possibly related issues found in github:
#1743
moby/moby#23302
The following are the docker command outputs [after hosting VM reboot]:
The text was updated successfully, but these errors were encountered: