-
Notifications
You must be signed in to change notification settings - Fork 519
Does podman-compose have a way to pass the "--userns keep-id" argument? #166
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
Comments
Only workaround I found is to set it in .bashrc/.zshrc:
As per http://docs.podman.io/en/latest/markdown/podman-create.1.html for –userns, "It defaults to the PODMAN_USERNS environment variable." That said, I then had other perms issues creating the container (container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "sysfs" to rootfs at "/sys" caused: operation not permitted: OCI runtime permission denied error), but that's off topic. |
I've been facing issues with permissions on volume mounts for Postgres containers. Basically some folder inside my |
you can pass it using podman-compose/podman_compose.py Line 866 in 105c27c
here is an example https://github.com/containers/podman-compose/blob/devel/examples/nodeproj/docker-compose.yml#L17 the example out of the box passes UID from .env not keep-id you can also put |
I've just tried adding that line to a
|
The |
I have a compose file with two services. When using the devel branch and the
(click here for full command output)
Is this a bug? It seems rather weird because |
I'm trying to get Bitnami Odoo container https://github.com/bitnami/containers/blob/main/bitnami/odoo/15/debian-11/docker-compose.yml running on MacOS (Intel) here (Podman Remote with VM) and faced the same error as @Igetin. Workaround using environment variable does not work afaik with containers using different uid's. podman version 4.4.2, podman-compose version: 1.0.4 (commit 08ffcf6)
I got a bit further while hitting some other errors now but that might be worth a try. Found it here #442 by searching through the code. EDIT: It does indeed run and set the userns option properly with Simple podman command that I try to run is
This is ending up with the same |
@jasalt Did you find any solution? I'm having the same issue, |
I have the same question. |
@Akruidenberg This seems to work for me:
Notice the |
I think this issue should be closed. As of version 1.0.6 of podman-compose, the line of |
@candleindark The last time I checked, this results in a creation error (as it should only be used when the container should run). @candleindark |
Adding a +1 to this issue. Is there anyone working on this error? If not, where should I be looking to get the right eyes on this? This is a multi year ticket that would be amazing if it was resolved. |
Podman-compose's development in general has been stale for quite time some now. I believe I read somewhere that they're planning to drop compose support at some point in favor of I've successfully switched my compose YAML stacks to the Kubernetes YAML format, so I can recommend it. |
@coreyryanhanson thanks for opening an issue. |
Sounds great, thank's for all the efforts. I will probably try this at some point again. Previously with this issue I ended up avoiding containers altogether and just use VirtualBox VM's for certain development work, and to use a rootless Docker installation (and Popularity of |
Can someone please check if it works? It seems not(((
UPD: It works =))) OR in YML
|
@uacode can you share the |
Tested on this package https://github.com/serversideup/docker-php docker-compose.yml
|
If I add a line to a yaml to be read by podman-compose with "userns_mode: keep-id", it ignores it completely. I've tried a few variations like "userns: keep-id" (matching the podman command line argument), but every time the code generated to call the containers does not change. Is this argument not supported yet in podman-compose?
The text was updated successfully, but these errors were encountered: