Download How do I set environment variables during the "docker build" process? book pdf free download link or read online here in PDF. Read online How do I set environment variables during the "docker build" process? book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
You can use ENV for environment variables to use during the build and in containers. With this Dockerfile: FROM ubuntu ARG BUILD_TIME=abc ENV RUN_TIME=123 RUN touch /env.txt RUN printenv > /env.txt You can override the build arg as you have done with docker build -t temp --build-arg BUILD_TIME=def .. Then you get what you expect:
Read : How do I set environment variables during the "docker build" process? pdf book online Select one of servers for direct link: |
---|