-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add variable for global flags to runlabel command #2399
Comments
@baude We discussed this via email, but the thread sort of died, so I'm throwing it up here |
@mheon I don't get the picture. Should the output of |
@QiWang19 |
Sorry, not a flag - a variable, similar to the other variables in runlabel |
Once the variable is added, we then want the output of the last |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
We need a variable in
podman runlabel
labels that expands to global Podman options, so we can pass through configuration (for example, storage config) to Podman commands being executed in labels.Steps to reproduce the issue:
mkdir /tmp/new
podman --root=/tmp/new create --name test1 -t -i --label 'TEST=podman info'
podman --root=/tmp/new commit test1 testimg
podman --root /tmp/new container runlabel TEST testimg
Describe the results you received:
Podman uses the default storage root
Describe the results you expected:
Podman uses /tmp/new as a storage root
Ideal fix is something like $GLOBAL_OPTS we can throw in the label between
podman
andinfo
to get the right options in thereThe text was updated successfully, but these errors were encountered: