Aws EC2 MACVLAN

Amazon EC2 networking doesn’t allow to use private ips in the containers

through bridges or macvlan. Dedicating a network interface to a

container makes it directly unreachable from the host.

docker network create -d macvlan --subnet 172.30.80.0/20 --gateway 172.30.80.1 -o parent=eth0 pub_net


docker run -d --network pub_net --ip 172.30.80.10 busybox

Related