On its official website ( https://docs.docker.com/reference/builder/#env ), Docker support claims that:
The ENV command sets the environment variable to a value. This value will be passed to all future RUN instructions. This is functionally equivalent to a prefix command with <key> = <value>
I tried:
http_proxy=<PROXY> docker build .
However, this does not seem to bring the same effect as adding ENV http_proxy = <PROXY> inside the Docker file. Why???
source
share