DEV Community

Discussion on: Be careful with Docker ports!

rendlerdenis profile image
Denis Rendler

Also, this option might help you:
--ip ip Default IP when binding container ports (default - click for docs

You can configure it through daemon.json located at /etc/docker/
and it will always map host ports to the if you want.

I hope it help. ;)