Docker Community Forums

Share and learn in the Docker community.

RPi4 docker and wlan0

I’m running Ubuntu 18.04 on a RPi 4 with Docker 19.03.6. The Pi is wired into on vlan on eth0 and on another vlan with wlan0. The host can ping both gateways. Docker has both networks created as follows:

docker network create -d macvlan --subnet=192.168.0.0/24 --gateway=192.168.0.1 -o parent=eth0 lan
docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=wlan0 iot

I’ve tried a few different containers and none of them can ping the wlan0 gateway, but can ping the eth0 gateway. Any suggestions?

I am facing the same issue, the Wi-Fi gets disconnected after starting one docker container.

The issue has been temporarily resolved by disabling the static IP.

Check the file - /etc/dhcpcd.conf, make sure all the static IP mapped with wlan0/SSIDs are commented out.

Reboot the Raspberry Pi.

Start the container.

Hope it works for you too.