Learning docker networking, how to connect to a container from host

I’m learning docker networking and doing so I created a small proof of concepts where I have two containers running on the same custom-defined bridge network. One of the container is an mqtt server which I would like to see from the outside (host) in order to try publishing messages on it.

How would I accomplish that?

Check the Getting started guide.

Part two introduces publish to expose ports outside of the container.

1 Like