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
Network driver alternative to --net=container:id for pod networking #26024
Comments
A shared network namespace is not really a "network" in the sense of Why create a dummy container? Why not just use the first one you create? |
I guess I thought of it as creating a network since
any containers using |
Ah I see. Technically you can create namespaces that live independently of containers, by holding a file descriptor corresponding to the namespace open somewhere else (eg in the daemon). As you say you need to manage the lifecycle. You might be able to prototype this outside docker, there might well be some issues haven't really gone through the detailed mechanics. |
Let me close this ticket for now, as it looks like it went stale. |
There are a number of systems including kubernetes that provide the ability to use pod-style networking:
This allows containers in the pod to share the same network and communicate over
localhost
This can be achieved today by creating and starting a dummy container for the sole purpose of providing a shared network. The group of containers in the pod use
--net=container:id
to share the dummy container's network. This is certainly a viable approach, however, there seems to be room for improvement.The proposal is to implement a new network driver for creating a flat, shared networking namespace that can be used without creating a dummy container:
The creation of a network driver is not something I have much experience with, so I apologize if the proposal is light on technical detail. I wanted to first gauge interest.
note there is an existing GitHub issue for making pods first class citizens in Docker (see #8781), however, the scope seems pretty large. The purpose of creating this as a separate issue is to propose incremental / smaller scale changes that could improve how we work with pods today.
The text was updated successfully, but these errors were encountered: