Replies: 1 comment 4 replies
-
So you are able to change paths like Otherwise a symlink or a bind mount, are the usual workarounds for hardcoded paths... I guess the problem here is that you are trying to make a single-user system (Docker) into multi-user. Running rootless docker would probably have the exact same problem, so not sure it is about podman. |
Beta Was this translation helpful? Give feedback.
4 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.
-
Hello,
I'm trying to use podman to run some CI runners (self-hosted github actions runner); the idea is to be able to run many runners over a bunch of physical servers and have different each runner be associated to a specific project/repository.
The workflows might use docker, so the podman container should be able to run
docker
to start a few containers: it was easy to get docker-inside-podman working by using the compatibility API by mounting/run/user/1000/podman/podman.sock
to/var/run/docker.sock
(at least, it seems to work in simple cases).The problem I'm facing is that when docker is mounting volumes inside the container (e.g. via
docker run -v"/home/foo:/bar"
) the host socket is used and the directory being mounted is at the host side (e.g./home/foo
in the example), but that might not exist at all.This issue is somewhat similar to the one discussed here, but I'm working locally and on Linux, so I have no need to use sshfs or
podman machine
.As suggested in this comment, it would be neat if I could configure podman so that, when running
podman run -v /foo:/bar
, the host directory/foo
could be mapped to another directory, say/mnt/foo
, via some translation table or "volume chroot".I could set up multiple users, each with a different
podman system service
socket and a different translation table, so that each new container executed by their users will not be able to interfere with the other's (or system's).Is something like this possible in podman 4.2 or above?
Beta Was this translation helpful? Give feedback.
All reactions