Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sohojmanush opened this issue Aug 4, 2021 · 1 comment
Open

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

sohojmanush opened this issue Aug 4, 2021 · 1 comment

Comments

@sohojmanush
Copy link

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
Copy link

karoltheguy commented Jan 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants