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 run -v /run:/run #3120
Comments
|
This usually means a UID is attempted to be used in the container that is not defined in the user namespace. Do you have some directory that is not searchable inside of the container. For example if your rootless container is attempting to crete content in /run/lock, it will not be allowed. Rootless Podman is still governed by the rules of linux. If your user is not allowed to create content in /run/lock then just running a container and volume mounting in /run/lock does not allow you to break the rules. |
|
This needs to be written up in a blog. |
|
Is this tmpcopyup?
…On Tue, May 14, 2019, 07:45 Daniel J Walsh ***@***.***> wrote:
This needs to be written up in a blog.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3120>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB3AOCG6QNSZPR7W6FHAAJ3PVKQ6NANCNFSM4HMV2BPQ>
.
|
|
No that only happens on tmpfs mounts, this is a usernamepaced container trying to write to /run/lock on the host and being blocked. The same way as if you were logged in and tried to do a touch /run/lock/foobar. |
|
The error string is "failed to mount tmpfs" - I think this is tmpcopyup |
|
The specific error string: https://github.com/opencontainers/runc/blob/master/libcontainer/rootfs_linux.go#L266 This is 100% tmpcopyup |
|
Are your discoveries pointing at a problem with the pms-docker image? Not being the owner of that image, is there anything I can do other than run as root? |
|
The image provides a way to specify a UID/GID of the user being used in the container. I'm specifying the values I am able to see when I run 'id'. Whether podman is run as root or a regular user the UID/GID being used inside the container should be the same. |
|
The Dockerfile: https://github.com/plexinc/pms-docker/blob/master/Dockerfile @rhatdan I think I know what this is. This causes several tmpfs filesystems to be mounted into the container, including (in Podman 1.2.x and earlier) one at Problem: you've mounted in Temporary solution: set |
|
@rhatdan I think we need to figure out how |
|
removing and creating new container with additional '--systemd=false' yields in the logs: |
|
That seems like a separate issue - probably caused by whatever is running within the container |
|
k, I'll run as root and check user level again when 1.3.x is available. -- thank you. |
|
Does your user have permission to access |
|
-v /run:/run |
|
@karezza Could you show again the podman command you are using. I am basing my thoughts on the podman command you show in the problem report, which does not specify a user. If you expect to have a user |
|
@karezza any updates? |
|
I tried without specifying PLEX_UID & PLEX_GID, not sure what user that tries. According to rhatdan, the "-v /run:/run" is the problem. The pms-docker image itself said to use "-v /run:/run" as a work around for a bug in a patched version of Docker. I don't know if the problem has to do with the pms-docker image or on the podman side. In the meantime I gave up and ran the image as root. As directed I'll try again when 1.3.x is released. If you had something else for me to try in the meantime let me know. I'll go ahead and close this issue. |
/kind bug
Description
This is not a plex question but it's what I'm using to describe the issue. The following script works if I run it as root, but not if I run it as regular user. Issue seems to be around the "-v /run:/run" on RHEL 8.
Steps to reproduce the issue:
podman run
-d
--privileged
--net host
--ipc host
--pid host
--name plex
-e TZ="America/Denver"
-e PLEX_UID=717201107
-e PLEX_GID=717200513
-v /home/travis/opt/plex/db:/config
-v /home/travis/opt/plex/transcode:/transcode
-v /home/travis/opt/plex/media:/data
-v /run:/run
-e CHANGE_CONFIG_DIR_OWNERSHIP="true"
plexinc/pms-docker
Describe the results you received:
container create failed: container_linux.go:336: starting container process caused "process_linux.go:399: container init caused "rootfs_linux.go:58: mounting \"tmpfs\" to rootfs \"/home/travis/.local/share/containers/storage/overlay/59b0879bc9f255137c05850c307d8c9f34543d1fa08658a44c40f43bd950a17a/merged\" at \"/tmp/runctop091524734/runctmpdir731776453\" caused \"tmpcopyup: failed to copy /home/travis/.local/share/containers/storage/overlay/59b0879bc9f255137c05850c307d8c9f34543d1fa08658a44c40f43bd950a17a/merged/run/lock to /tmp/runctop091524734/runctmpdir731776453: open /home/travis/.local/share/containers/storage/overlay/59b0879bc9f255137c05850c307d8c9f34543d1fa08658a44c40f43bd950a17a/merged/run/lock/lvm: permission denied\"""
: internal libpod error
Describe the results you expected:
Expected the container to start up normally.
Additional information you deem important (e.g. issue happens only occasionally):
I was directed to use '- /run' on this plex page, if you are interested in why: https://hub.docker.com/r/plexinc/pms-docker/, search for '-v /run'.
Output of
podman version:Output of
podman info --debug:Additional environment details (AWS, VirtualBox, physical, etc.):
Hyper-V virtual system
The text was updated successfully, but these errors were encountered: