apt-get failing on rootless Podman #11217
Replies: 3 comments 4 replies
-
In order to build an image with multiple UIDs you need to own multiple UIDs. |
Beta Was this translation helpful? Give feedback.
-
containers/storage just got the ability to use /etc/subuid and /etc/subgid from the nextwork. This will be working it's way though the system, You need shadow-utils-4.9 to make this work, and I am not sure whether FREEIPA or other ldap support is available yet. |
Beta Was this translation helpful? Give feedback.
-
Not related, but for anyone who finds this discussion in the future when searching for the error messages Fix for
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm on HPC system where we're testing out Rootless Podman (same place as this discussion: #11184), specifically seeing if we can provide users the ability to build images on their own on the shared login nodes. Due to admin limitations, it's not really possible to provide /etc/subuid and /etc/subgid mappings for all our users (we have hundreds with new users coming in all the time).
When you try to do an apt-get update or apt-get install on an ubuntu container with rootless Podman on a system without the subuid/subgid mappings, it fails like so (this is a test on a workstation identical to the HPC node):
Running with flags like this allows apt-get update to finish but fails for apt-get install. (The following is from a workstation identical to the HPC node. I've verified running this on the HPC node behaves the same way).
It's the same errors during a Podman build as well when I try to do a
RUN apt-get update
or aRUN apt-get install ...
.To recreate this, all you need is to try and do the above with rootless Podman after removing the /etc/sub[uid|gid] mappings for your user from your machine (you may also want to kill any existing Podman processes, and then log off and log in). I tested it on Podman v3.0.2-dev and v3.2.3.
Does anyone have any thoughts of how this could be worked around? Looking around the internet, I'd found one blog post talking about this from 2016: https://www.cyphar.com/blog/post/20160627-rootless-containers-with-runc but it seems like they didn't have a solution either.
Beta Was this translation helpful? Give feedback.
All reactions