SWARM : Some ports are exposed, some other not

In my case, the issue was due to us passing two compose files docker stack deploy, docker-compose.yml and docker-compose.prod.yml, and a bug in how docker stack deploy and docker stack config are merging port mappings when the published port is the same but the protocol is different (like for HTTPS that requires both 443/tcp and 443/udp). I shared a reproducer, a root cause analysis, and a workaround at docker stack can't publish udp and tcp for the same port · Issue #2407 · docker/cli · GitHub.

1 Like

You gotta love Docker Swarm, there is a pull request since 2020 to fix this, but no one cares to merge.

Well, Docker Inc can’t earn any money with this, Mirantis can’t earn money with this open source version.