-
Notifications
You must be signed in to change notification settings - Fork 878
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
[macvlan] Same parent and gateway for multiple networks #2384
Comments
I have same issue. My workaround is to create macvlan network with multiple subnet's and then force ip for each container. dummy docker-compose to create network
One of containers
Any other ways of having public IP's for multiple containers ? |
The check preventing multiple networks with the same parent interface only makes sense if Docker automatically created the parent interface. I think the check should be kept, but only be enforced if |
Hello @bodji and @haboustak . Can anybody guid me, how can I 'patch' the docker, or use config.CreatedSlaveLink option to make it working? Any help would be very appreciated! |
Another possible workaround for this issue is to create macvlan interfaces on the host (eg. using |
Hi,
We are struggling with an issue with macvlan driver.
We wonder why we can't have multiple macvlan docker network with the same parent ?
This check forbids it in libnetwork/drivers/macvlan/macvlan_network.go :
And, also, why we can't have the same gateway for multiple macvlan docker networks ?
Our use case is the following :
Our problem :
We want to specify the public IP of a container.
-> IPAM in Swarm does not allow to specify ipv4_address param in compose file (normal behaviour with --scale)
-> So we thought about creating one macvlan network with same parent interface, same gateway, and an --ip-range with the /32 we want.
We made some patch on the two files specified, and it works.
Is it a viable solution, and could we remove safely those checks?
Thank you !
The text was updated successfully, but these errors were encountered: