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 --scope=swarm fails #39

Open
jimbothigpen opened this issue May 18, 2023 · 0 comments
Open

docker network create --scope=swarm fails #39

jimbothigpen opened this issue May 18, 2023 · 0 comments

Comments

@jimbothigpen
Copy link

Any way to get this driver to create a network with --scope=swarm instead of local scope? My main motivation for testing this is to give a few docker containers static IP addresses via my local dhcp server, since it's impossible to assign an address to a container attached to a macvlan network in swarm mode. I'm able to create dhcp networks with this driver in local scope on each individual node in the swarm, but that won't allow me to attach any swarm services to that network. When I run:

docker network create --scope=swarm -d ghcr.io/devplayer0/docker-net-dhcp:release-linux-amd64 --ipam-driver null -o skip_routes=true -o lease_timeout=60s -o bridge=vmbr1 dhcp-net-vmmbr1

I get:

Error response from daemon: rpc error: code = InvalidArgument desc = error during lookup of plugin null

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

1 participant