Docker Community Forums

Share and learn in the Docker community.

Overlay network broken after resuming from sleep

Has anyone else run into an issue with overlay networks and suspend/resume of the host?

I have a stack set up with a mysql container that exposes port 3306 to the host via an overlay network. Everything works great until I suspend my machine. When I resume the host, the containers are all up and functional inside the stack, but the external overlay network is now in a state where exposed ports are no longer routing properly between the host and the containers.

Once it gets into this state the only recourse appears to be stopping Docker and restarting it. When the stack comes back up, everything is working as expected. I have tried deleting everything and recreating it with no improvement. I have also tried just deleting the overlay network and recreating it. That sometimes works, but not reliably. The only thing that works every time is restarting Docker.