Docker Community Forums

Share and learn in the Docker community.

Make client/server-script run on multiple containers


(Baristatest1) #1

Hello there.

In order to better understand dockers network functions and to later use it for a bigger project, I wanted to make this (https://learning-0mq-with-pyzmq.readthedocs.io/en/latest/pyzmq/patterns/client_server.html) little client/server code example run on multiple containers.
So I ran two containers in the default bridge network, ran the reqrep_server.py with port 5546 and 5556 on the 1st container and ran reqrep_client.py with the same ports on the 2nd container, thinking this shouldn’t be a Problem. However there was no interaction.
So now my question is: What did I do wrong? Do I have to publish ports in a special way or is there an other Issue that I am not aware of? As far as I am aware of all my settings should be default.

Thanks in advance!