Skip to content

feat(driver-podman): add userns config - #2562

Open
giuseppe wants to merge 1 commit into
NVIDIA:mainfrom
giuseppe:user-namespaces
Open

feat(driver-podman): add userns config#2562
giuseppe wants to merge 1 commit into
NVIDIA:mainfrom
giuseppe:user-namespaces

Conversation

@giuseppe

Copy link
Copy Markdown

Add a userns option to the Podman compute driver that maps to Podman's --userns flag. When set to auto, the container spec includes idmappings.AutoUserNs = true as required by the API.

Podman image volumes use overlay mounts internally and the kernel does not support idmapped mounts on overlay. When userns is configured, the driver extracts the supervisor binary from the image to a host-side cache and bind-mounts it instead of using an image volume. The image volume path is preserved when userns is unset.

Summary

Related Issue

Changes

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

@copy-pr-bot

copy-pr-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions

Copy link
Copy Markdown

Thank you for your submission! We ask that you sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text:


I have read the DCO document and I hereby sign the DCO.


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the DCO Assistant Lite bot.

@giuseppe giuseppe changed the title feat(driver-podman): add userns config with supervisor bind-mount fallback feat(driver-podman): add userns config Jul 30, 2026
…lback

Add a `userns` option to the Podman compute driver that maps to
Podman's `--userns` flag. When set to `auto`, the container spec
includes `idmappings.AutoUserNs = true` as required by the API.

Podman image volumes use overlay mounts internally and the kernel
does not support idmapped mounts on overlay. When userns is
configured, the driver extracts the supervisor binary from the
image to a host-side cache and bind-mounts it instead of using
an image volume. The image volume path is preserved when userns
is unset.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
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