Skip to content

Add variable for global flags to runlabel command #2399

@mheon

Description

@mheon

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:

  1. mkdir /tmp/new

  2. podman --root=/tmp/new create --name test1 -t -i --label 'TEST=podman info'

  3. podman --root=/tmp/new commit test1 testimg

  4. 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

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions