-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Podman vs Docker networking: IPv4, IPv6 and Dual Stack #7302
Comments
@aojea Are we any closer on this one? |
Sorry @rhatdan I forget to follow up, I need your opinion first, right now the situations is: podman does ipv4 OR ipv6. what do you prefer to imlement?
I personally will go with the 2nd option, is simpler and is what people is used to use ... and we can always implement 1. later |
Sure let's do 2. |
A friendly reminder that this issue had no activity for 30 days. |
Please go for option 1. The Docker implementation is screwed up and people do want IPv6-only containers, therefore allowing all three networking options (IPv4 OR IPv6 OR dual-stack) does make sense. |
I've implemented ALL, you can use ipv4 only, ipv6 only and dual-stack ;) |
Amazing! Will try, thank you. :-) |
No need to apologise, is a fair comment ....
|
/kind bug
/kind feature
Description
I do not think that podman and docker network will behave similar, simple because this is a long history between containers networking, CNM/libnetwork vs CNI https://kubernetes.io/blog/2016/01/why-kubernetes-doesnt-use-libnetwork/
Docker network ALWAYS use IPv4, if you enable IPv6 then it creates dual-stack networks..
With
podman network
you can only have single stack networks for the containers, because you can only specify one range as parameter:CNI allows dual-stack configurations, something we already have in KIND, as you can see in this snippet
https://github.com/kubernetes-sigs/kind/blob/afe54f7eb52c902ff5bdb23e522bc38e00a71e27/images/kindnetd/cmd/kindnetd/cni.go#L34-L64
I'm happy to submit a PR to implement this, but I'm interested in hearing what are the expected semantics for
podman network
,I do see value in creating IPv6 only containers, but in the other hand I recognize that this is far from being a reality and most people use dual stack on containers.
podman network create
podman/pkg/domain/entities/network.go
Lines 40 to 50 in 588df90
The text was updated successfully, but these errors were encountered: