-
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
runlabel: support for env vars in label #2171
Comments
Yes this is supposed to work. |
@baude has this been fixed. |
When doing environment variable substitution, we need to make sure $PWD is replaced with the current working directory. fixes issue containers#2171 Signed-off-by: baude <bbaude@redhat.com>
Another variable to substitute is $UID. For example, when I use |
Hi, another variable to substitute would be
There must be many situations where variable need substituting, is there a more generic way this can be dealt with? Other example variables can be found in the fedora toolbox project: https://github.com/debarshiray/toolbox/blob/master/toolbox#L24 |
supposed to be fixed, reopen if needed |
/kind feature
Description
Is
podman container runlabel
supposed to support env var substitution? I can't seem to get it to work.For example:
LABEL RUN="podman run -it -v \${PWD}/logs/:/home/user/.weechat/logs/:z --name weechat weechat"
in my Dockerfile isn't working. The var gets replaced with an empty value.This used to work in the past: For example: https://github.com/projectatomic/atomicapp/blob/fba5cbb0a42b79418ac85ab93036a4404b92a431/Dockerfile#L7-L11
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:podman-0.12.1.2-1.git9551f6b.fc29.x86_64
The text was updated successfully, but these errors were encountered: