Category : macvlan

I want to make a docker container with IP different from macOS host. It seems that both macvlan and ipvlan can be used for this purpose. But the documentation is not very clear to me. Supposed the gateway of a local network (DHCP) is 192.168.1.1. $ ifconfig en0 en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether xx:xx:xx:xx:xx:xx ..

Read more

I created a macvlan network on 3 swarm managers using the following commands. Executed this on every node. $docker network create –config-only –subnet 192.168.0.0/24 –gateway 192.168.0.1 –ip-range 192.168.0.192/27 -o parent=eth0 collabnet Executed this on 1 node. $docker network create -d macvlan –scope swarm –config-from collabnet swarm-macvlan Created a service $ docker service create –replicas 3 ..

Read more

I created this docker macvlan (below). docker network create -d macvlan –subnet=51.xx.6.65/24 –subnet=167.yy.46.168/24 –gateway=51.xx.6.254 –gateway=167.yy.46.254 -o parent=eno1 pub_net2 Then I ran some containers using those IP by mac addreses. Now I have some new IP addresses (new subnet and gateway). Can I include these into the pub_net2 ? Is it possible to change / alter ..

Read more