devplayer0 / docker-net-dhcp

Docker network driver for networking on a host bridge with DHCP-allocated IP addresses
GNU General Public License v3.0
193 stars 55 forks source link

"docker network create" requires exactly 1 argument. error. #25

Open sohojmanush opened 3 years ago

sohojmanush commented 3 years ago

Fresh os & docker installation on RPI . My executed commands are:

docker plugin install ghcr.io/devplayer0/docker-net-dhcp:latest-linux-arm-v7
sudo ip link add my-bridge type bridge
sudo ip link set my-bridge up
sudo ip link set eth0 up
sudo ip link set eth0 master my-bridge
sudo iptables -A FORWARD -i docker-bridge -j ACCEPT
sudo dhcpcd docker-bridge

On the first try after this point ssh connection got disconnected. "disconnect: Broken pipe". I have to power cycle my RPI. Also, not sure is this applicable on raspbian: sudo iptables -A FORWARD -i docker-bridge -j ACCEPT

On the second try after entering

docker network create -d ghcr.io/devplayer0/docker-net-dhcp:latest-linux-arm-v7 --ipam-driver null -o bridge=my-bridge docker-dhcp-net 1050

yields "docker network create" requires exactly 1 argument. See 'docker network create --help'.

Also, it will be nice to clarify what does represents. Probably, its the ID generated at the very beginning (after the first command". Adding that ID also produce the same error.

karoltheguy commented 2 years ago

To my understanding when it says <some network id>, this means the system returns a network id to you. So do the same command minus 1050 and it should work.