Hacker symbol

November 11, 2019 ~ 1 min read

Docker network open ports

Sometimes when one tries to access a port of an application inside of a docker container running in swarm mode one can't access it. For example:

    image: ${GAIAD_IMAGE}
      mode: replicated
      replicas: 1
      - ""

On localhost when one runs curl -s localhost:26657/health it just stalls and nothing happens.

In this case the docker swarm was using a wg0 interface as the overlay network. So the command should have been curl -s


Check which docker network it is being used for the docker swarm

Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on trustless systems.