-
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
"rootless containers and pods cannot be assigned static IP addresses" (podman-run, rootless, CNI) #7842
Comments
These are the exact steps to confirm the OP's observation that rootless containers cannot be assigned a static IP on a user-defined rootless cni network Containers NOT in pod
Container WITHIN a pod
However, containers created in the same way do have proper IP addresses assigned to them automatically when they join "myCNI" which suggests manual assignment of ip address for such containers ought to be possible (from a user perspective at least).
For similar containers added to a pod (and assigned IP addresses automatically), DNS based on container names fails. |
OK, this completely slipped through the cracks until now; sorry. @AkihiroSuda This ought to work fine on the CNI side, right? I suspect this is a check Podman is doing before we even call out to CNI, so I expect it should be an easy fix. |
Yes, this should be really easy to fix |
Loosen some restrictions within specgen around rootless containers - they can now set static IP and MAC addresses as long as they are in a CNI network. Fixes containers#7842 Signed-off-by: Matthew Heon <[email protected]>
#8198 to fix |
Loosen some restrictions within specgen around rootless containers - they can now set static IP and MAC addresses as long as they are in a CNI network. Fixes containers#7842 Signed-off-by: Matthew Heon <[email protected]>
A friendly reminder that this issue had no activity for 30 days. |
Good to see progress on this one. |
A friendly reminder that this issue had no activity for 30 days. |
A fix for this is also in the new imageless rootless-cni-infra PR #8910 |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Assignment of a static IP address to rootless CNI when running
podman run
fails.If the failure is expected it should be documented in the documentation for the
--ip
command-line option in the manual page forpodman run
https://github.com/containers/podman/blob/master/docs/source/markdown/podman-run.1.md
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: