docker - Is there an alternative to Dockerfile Env Instruction? -
In your official site (), the docking support status is:
NV instructions Environment variable for set value This value will be passed on all future RUN instructions This functionally & lt; Key> = & lt; Value>
I tried:
http_proxy = & lt; Proxy & gt; Doker Build However, it does not seem to bring the same effect as adding the ENV http_proxy = & lt; Proxy> Why dorkerfile inside ???
This functionally & lt; Key> = & lt; Value>
This does not mean that since the command executed outside of a container,
Docker BuildOrder is similar to prefixingThis means that the prefixes using ENV are similar to those which run inside the container. For example, the same equal statement would look like this:
RUn http_proxy = & lt; Proxy & gt; Curl https://www.google.comor equivalent command is executed by container (by shell):
$ http_proxy = & Lt; Proxy & gt; Curl https://www.google.com
Comments
Post a Comment