Docker Community Forums

Share and learn in the Docker community.

IP Restriction on Docker using MacOs x High Sierra

What I want to solve is to restrict the IP on docker container and used the server IP address . Is that possible?

I tried adding this to my .yml network_mode: "host" but its not working.

This is my docker setup.