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
PODMAN_USERNS broken with bind mounts #6705
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Comments
openshift-ci-robot
added
the
kind/bug
Categorizes issue or PR as related to a bug.
label
Jun 22, 2020
I can confirm that adding the flag
It seems like the bug here is that 2.0.0 does not read the |
That seems to be correct - I'll take a look at re-adding it. |
mheon
added a commit
to mheon/libpod
that referenced
this issue
Jun 22, 2020
This was lost during the Podman 2.0 migration. Turns out to be a very easy fix, fortunately - we want to use the environment var if not explicitly overridden. Fixes containers#6705 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
mheon
added a commit
to mheon/libpod
that referenced
this issue
Jun 22, 2020
This was lost during the Podman 2.0 migration. Turns out to be a very easy fix, fortunately - we want to use the environment var if not explicitly overridden. Fixes containers#6705 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
mheon
added a commit
to mheon/libpod
that referenced
this issue
Jun 24, 2020
This was lost during the Podman 2.0 migration. Turns out to be a very easy fix, fortunately - we want to use the environment var if not explicitly overridden. Fixes containers#6705 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 23, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
/kind bug
Description
Setting the environment variable
PODMAN_USERNS=keep-id
should mount the directory as owned by the host user uid:gid.Steps to reproduce the issue:
First create a test directory to bind mount:
The host user is
1000:985
:podman 1.9.3:
Note the ownership of
.
:podman 2.0.0:
The owner of
.
is root:Describe the results you received:
The mounted directory is owned by root inside the container.
Describe the results you expected:
The mounted directory inside the container to be owned by the host user.
Output of
podman info --debug
:podman 1.9.3
podman 2.0.0
System
Arch Linux using the
podman
package.If more info is needed, I'll gladly post.
The text was updated successfully, but these errors were encountered: