Docker ARG, ENV and .env - a Complete Guide · vsupalov.com - 1 views
-
understand and use Docker build-time variables, environment variables and docker-compose templating the right way.
-
ARG is only available during the build of a Docker image (RUN etc), not after the image is created and containers are started from it (ENTRYPOINT, CMD).
-
ENV values are available to containers, but also RUN-style commands during the Docker build starting with the line where they are introduced.
- ...20 more annotations...