Skip to content

Feature: support uidmap with podman play kube #7504

@akvadrako

Description

@akvadrako

/kind feature

I would like to use pod.yaml as a rootless alternative to docker-compose. In a pod I'm working on, some containers expect to run as root and some expect to run as a non-root user. I would like all of them to map to my current user in the host's namespace.

For this I need some way to pass the uidmap option using a pod.yaml file. Something like:

spec:
  containers:
  - name: as1000
    securityContext:
      UIDMap: 300:0:1
      GIDMap: 300:0:1

Related: moby/moby#28593 kubernetes/enhancements#127 #6123

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions