Skip to content

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.

1 participant