-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
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 and info to get the right options in there