Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equivalent --root, --runroot, --registries-conf, and --registries-conf-dir flags for podman's CLI #21250

Closed
offbynull opened this issue Jan 13, 2024 · 7 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@offbynull
Copy link

offbynull commented Jan 13, 2024

Feature request description

My understanding is that the flags in the title are for buildah's CLI, and they allow the user to completely change up where buildah looks for its state/configuration for that specific launch of the CLI. Would it be possible for these flags (or similar flags) to be included in podman's CLI? This would help avoid polluting the user's list of podman containers / podman's state when automated scripts are involved. For example, imagine I have a custom script that runs podman's CLI to create a few containers. Maybe I don't want those containers to show up in the user's list of normal containers.

Suggest potential solution

Add the flags.

Have you considered any alternatives?

I've been using buildah directly in my scripts (as a hack) rather than using podman.

Additional context

No response

@offbynull offbynull added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 13, 2024
@rhatdan
Copy link
Member

rhatdan commented Jan 13, 2024

Similar flags are available for podman (Real podman, not Podman on the MAC, which is podman-remote.

@offbynull
Copy link
Author

offbynull commented Jan 13, 2024 via email

@offbynull
Copy link
Author

So, it looks like --root and --runroot are there but --registries-conf, and --registries-conf-dir aren't.

@rhatdan
Copy link
Member

rhatdan commented Jan 14, 2024

Environment CONTAINERS_REGISTRIES_CONF should work, but no --registries-conf-dir equivalent.

@rhatdan
Copy link
Member

rhatdan commented Jan 14, 2024

We also have a hidden option.
./cmd/podman/root.go: pFlags.StringVar(&podmanConfig.RegistriesConf, "registries-conf", "", "Path to a registries.conf to use for image processing")

@rhatdan
Copy link
Member

rhatdan commented Jan 14, 2024

This patch to Podman would enable --registires-conf-dir for podman build and podman kube play, but only for local non --remote builds.
registries-conf-dir.patch

@offbynull
Copy link
Author

Okay. I think this covers it. Thank you.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Apr 15, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

2 participants