Closed apollux closed 7 years ago
@apollux this issue seems like a Docker Swarm mode issue. This repo is about the standalone Docker Swarm project. Do you mind opening this issue on github.com/docker/swarmkit or github.com/moby/moby? Don't forget to tag me there.
Let me start by saying that I am not convinced that this is a docker swarm issue, although all investigation so far points in this direction.
I have a couple of services running in a docker swarm on a single docker host. All services run in the same overlay network. These services all expose a different port on which a web server is available. The docker-host runs CoreOS (1520.0.0 Alpha channel).
Sometimes I end up in a situation in which requests made on http://docker-host.local: timeout. When I login on the docker-host and make a request to localhost: it also times out. However from a shell in a different container a request to the service does succeed without issues.
docker service ls
shows the correct port mappings.The service that is not reachable, is seemingly random. Sometimes all are functioning correctly, sometimes one is not reachable, sometimes it resolves after some time.
I have inspected the docker networks, they do not conflict the with the host network.
I can reproduce this by creating a stack of nginx services, hosting the default webpage. file: docker-compose-test.yml
This script will deploy the stack, test availability and take down the stack until the error situation is reached. file: test-docker-swarm.sh
execute running: `./test-docker-swarm.sh
I have no clue what steps I can take to debug, and resolve this. Any pointers are appreciated.
docker version