I’m using Ubuntu and the commands
docker-compose build --pull
docker-compose up --detach
I have multiple containers with different ports listings.
I am viewing the port setup with both docker ps and the Ubuntu iptables command (they both agree)
The following works
ports:
- 30303:30303
- 8544:8545/tcp
The following does not work (i.e. does not setup the link in docker ps nor add 30304 to the iptables)
ports:
- 30304:30303
(I also have 6 other containers attempting to map external 30305 to 30309 to the containers’ 30303 with equal lack of success)
I am at a total loss here. I’m assuming that it is a docker/docker-compose issue since docker ps doesn’t show the mapping – but I don’t see any distinguishing features between what is working and what is not.