Docker swarm service port not exposed
问题 I cannot connect to a service running on docker swarm. The swarm seems ok because I can connect to other containers running on it. I running the service with docker stack deploy -c docker-compose.yaml nifi and the docker compose file is: version: "3.3" services: registry: image: apache/nifi-registry:0.3.0 ports: - "18080:18080" deploy: replicas: 1 restart_policy: condition: on-failure When I run this without the swarm i.e. docker-compose -f docker-compose.yaml up it works fine and I can