Assign public IP address to Docker Container without port binding

docker network create -d macvlan -o macvlan_mode=bridge — subnet=188.40.76.0/26 — gateway=188.40.76.1 -o parent=eth0 macvlan_bridge

docker run — name cont1 — net=macvlan_bridge — ip=88.99.102.115 — mac-address 00:50:56:00:60:42 -itd nginx

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store