Skip to content

Conversation

@majiayu000
Copy link

Summary

  • Add --group-add flag to podman pod create command
  • Allows passing supplementary groups to the infra container
  • Supports keep-groups argument for preserving host groups in rootless scenarios

Fixes #27559

Changes

  • Move --group-add flag definition to InfraMode || CreateMode block in cmd/podman/common/create.go
  • Add documentation reference in docs/source/markdown/podman-pod-create.1.md.in
  • Update docs/source/markdown/options/group-add.md header to include pod create

🤖 Generated with Claude Code

Add the --group-add flag to podman pod create to allow users to
assign additional groups to processes in the pod's infra container.
This aligns pod create with container create which already supports
this flag.

The flag is useful for granting supplementary group access (e.g., for
accessing devices protected by group permissions) to containers in
the pod.

Fixes: containers#27559

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Signed-off-by: majiayu000 <[email protected]>
@mheon
Copy link
Member

mheon commented Dec 31, 2025

Dupe of #27776 - and I have the same reservations I had there. Closing.

@mheon mheon closed this Dec 31, 2025
@majiayu000 majiayu000 deleted the fix-27559-missing---group-add-in-podman--1231-0532 branch December 31, 2025 16:02
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.

Missing --group-add in "podman pod create"?

2 participants