-
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
Option to name network interface inside container same as the respective podman network interface name or its parent by default #13174
Comments
We do not support any docker specific option via the compat api yet. It should be possible to map some of those to the podman options. |
What is the command to achieve this? Is it specific to a particular driver or generic? |
You can use |
I wonder if this is something that would be appropriate for |
This podman option works better for me. Just that Docker Compose fails to recognize it. As @mheon suggested, it will be great if we can make it the default behavior by means of containers.conf. |
Just to be clear on the ask: |
Hi @Luap99 , |
I don't think so. This is definitely more complex to implement. |
We are not adding features to podman 4.0 at this point, It should release later this week. |
The problem with interface_name = "network" is that this will fail if the name contains invalid characters or is longer than 15 chars since the kernel has this limitation for interface names. |
For my use case, either of parent and network will work as the network name is same as parent. If “parent” makes it easy, that’s fine too. |
What does "parent" means, the interface name on host? |
Yes |
A friendly reminder that this issue had no activity for 30 days. |
@Luap99 @vikas-goel Any movement on this Issue? |
Not from my side, I don't think this has a high priority. |
I was hoping it to be available in 4.1 as per earlier discussion. Is that plan still in place? |
Just checking the timeline for this one to be available? |
This isn't prioritized at present, so no one is actively working on it or planning to work on it; I'd suggest opening a Bugzilla if you'd like to have it prioritized. Earliest likely date in that case would be Podman 4.1, for RHEL 8.6.0.2. |
Also this is an open source project, anyone can implement the changes. I am always happy to review community PRs. |
To enable this capability, is the change going to be limited to "podman" project or does it extend to some external dependencies too? |
@mheon , raised a Bugzilla a while ago. Is there any update? |
closing this in favor of the bugzilla. |
Docker allows to customer network interface name inside containers using com.docker.network.container_iface_prefix option. Docker Compose too supports it.
How can same be done with Podman when used with Docker Compose?
Will be good to have containers.conf option, say
interface_name = network|parent
to make that default.The text was updated successfully, but these errors were encountered: