nerdctl compose support for interface_name and translation to CNI_IFNAME
#4752
Unanswered
tariromukute
asked this question in
Q&A
Replies: 1 comment
-
Yes, PR is welcome |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I wanted to ask if
nerdctl composecurrently supports theinterface_nameproperty when defining networks for a service.I am trying to migrate some workflows to
nerdctl, and my use case requires specific naming for network interfaces inside the container (e.g., mapping a specific network toweb0instead ofeth0oreth1).In the Compose Specification,
interface_nameis defined under the network configuration for a service. When using CNI, this typically translates to passing theCNI_IFNAMEargument to the plugin.I inspected the
nerdctlsource code briefly and couldn't find references tointerface_nameorCNI_IFNAMEbeing propagated from the compose file, so I assume this might not be implemented yet.Sample
compose.yaml:Expected Behavior:
When
nerdctl compose upstarts this container, the CNI plugin for theovsnetnetwork should receiveCNI_IFNAME=web0.Is this something that is on the roadmap, or would you be open to a feature request/PR to add this support?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions