Skip to content
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

Relax checking of userns_mode to allow supplying e.g. keep-id as config #3230

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bauen1
Copy link

@bauen1 bauen1 commented Feb 29, 2024

This change means, that docker-compose can now, like podman-compose containers/podman-compose#166, make use of the user namespaces features of podman.

For example, the following works when using rootless podman in combination with docker-compose:

version: "3.7"

services:
  postgres1:
    image: docker.io/postgres:bullseye
    container_name: postgres1
    userns_mode: keep-id

When using docker-compose in combination with rootless podman
containers it is desirable to use the keep-id user namespace mapping.
By lifting the restriction to 'host' the userns_mode config can now be
used with podman to supply the keep-id or more complex configurations.

Signed-off-by: Jonathan Hettwer (bauen1) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant