Add variable for global flags to runlabel command #2399
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.
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: