You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set multiple variables in one layer, with one variable depending on the value of the other, it would not work.
Example Dockerfile:
FROM alpine
ENV VAR1="VALUE" \
VAR2="VAL 1 = $VAR1"ENTRYPOINT env | grep VAR
Running:
$ docker build -t vars .# ...
$ docker run -t vars
VAR1=VAR 1 VALUE
VAR2=VAL 1 =
Tested on Docker 1.6.2 and 1.7.1.
docker version:
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d
OS/Arch (server): linux/amd64
at one point we almost let in a PR that could do that but then it was rejected because that's not a normal sh-ism. Would have been cool though :-) So, gonna close this as a dup - see: #10431 (comment)
If I set multiple variables in one layer, with one variable depending on the value of the other, it would not work.
Example Dockerfile:
Running:
Tested on Docker 1.6.2 and 1.7.1.
docker version
:docker info
:uname -a
The text was updated successfully, but these errors were encountered: