Code: Select all
desktop ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:9B:F7:DB:5B
inet addr:10.0.0.10 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:217672 errors:0 dropped:0 overruns:0 frame:0
TX packets:327887 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:97712405 (93.1 MiB) TX bytes:381469137 (363.7 MiB)
desktop ~ $ docker network create -d macvlan --subnet 10.0.0.0/8 --gateway 10.0.0.1 -o parent=eth0 -o macvlan_mode=bridge macvlan
desktop ~ $ docker run --cap-add=NET_ADMIN -e ServerIP=10.0.0.20 --net macvlan --name pihole --restart=always -d diginc/pi-hole:alpine
Code: Select all
nas ~ $ docker run --name dind --net host --privileged -d docker:dind dockerd --host=unix:///var/run/docker.sock --storage-driver vfs --iptables=false --bridge=none
Code: Select all
dind ~ $ docker run --cap-add=NET_ADMIN -e ServerIP=10.0.0.20 --net macvlan --name pihole --restart=always -d diginc/pi-hole:alpine
7ec9bc1c0846f13f0c0b71b85a120f1b6c37925cc4d84b566b2e94bdbf6d811f
docker: Error response from daemon: failed to create the macvlan port: operation not supported.