Closed jabir366 closed 1 week ago
I also tried using ENV ARCH $(uname -m)
It works, but as per the documentation , it says that this option is kept just for backward compatibility and will be removed in future
I understand that this won't work as each command in Dockerfile is executed in a separate container
Contributing guidelines
I've found a bug and checked that ...
Description
When ENV variable is set as output of a command having spaces in it , the docker does not parse them properly and giving a syntax error
in the Dockerfile the following line
Expected behaviour
No error is expected, the variable $ARCH should have the system architecture
Actual behaviour
Docker is showing error
Buildx version
buildah 1.33.8
Docker info
Builders list
Configuration
Build logs
Additional info
I have tried to change the line from
ENV ARCH=$(uname -m)
toENV ARCH=$(arch)
. this is passing because it has only one argument inside the$()