Skip to content

Addition of --userns=keep-id is a significant breaking change for many podman devcontainers. #1004

Description

@gilesknap

See:

https://github.com/devcontainers/cli/blame/da16ca99500f519043f39f957d9ff55d971acec5/src/spec-node/singleContainer.ts#L439

The recent addition of --userns-keep-id to the launch parameters for podman devcontainers has broken all of the devcontainers at our facility.

We have been running devcontainers with rootless podman for more than 4 years and our approach has always been to use root inside the container with that mapping to our user-id for host mounted filesystems. This recent change means that although my devcontainer loads and is still running as root (because we have remoteUser="" in .devcontainer.json) it is unable to make changes to the git repo as that is now owned by a different user id (my own user id).

A significant change like this should be given a configuration field so that we can turn it off - perhaps that already exists and I have missed it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't workingpodman

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions