Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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) <j2468h@gmail.com>
@bauen1 bauen1 force-pushed the relax-userns-checks branch from d4f13e4 to 2cebb82 Compare February 29, 2024 19:51
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant