Dockstarter Macvlan Guide not working
Hi!
I've followed this guide from the Dockstarter site so that I can get my Plex server working with "raw" network access:
https://dockstarter.com/advanced/macvlan/
I also went and read the guide it was based from:
https://blog.oddbit.com/post/2018-03-12-using-docker-macvlan-networks/
So, I've created the network with docker, and the shim network locally as such:
docker network create -d macvlan -o parent=wlan0 --subnet 192.168.1.0/24 --gateway 192.168.1.1 --ip-range 192.168.1.197/27 --aux-address 'host=192.168.1.223' mynet
ip link add mynet-shim link wlan0 type macvlan mode bridge
ip addr add 192.168.1.223/32 dev mynet-shim
ip link set mynet-shim up
ip route add 192.168.1.192/27 dev mynet-shim
However, when I compose with the override, it fails:
version: "3.4" services: plex: networks: composemacvlan: ipv4_address: 192.168.1.201 networks: composemacvlan: external: name: mynet-shim
Error is:
"Network mynet-shim declared as external, but could not be found. Please create the network manually using docker network create mynet-shim and try again."`
Docker version is latest at 20.10.2
Both the above guides say to use the shim network you made, not the one made with docker itself. However, docker doesn't "see" the shim network despite appearing in ifconfig:
mynet-shim: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
It only "sees" the network ("mynet") made through docker. But, clearly both of the above articles use the shim in the override. In the original article, people are way beyond this point though recently. Unfortunately, there's no discussion on this in the Dockstarter version of the guide.
Hopefully, somebody can help me here. Thanks!
Other notes: Raspbian 10 (Buster)
Posted Jan 28, 2021, 7:44 PM UTC · edited