advancedTop 100 Interview Questions
What is the difference between ARG and ENV?
ARG defines a build-time-only variable, available during the build but not present in the final running container unless explicitly assigned to an ENV variable. ENV sets a variable that's baked into the image and available both at build time and to the running container.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.
What is the difference between ARG and ENV?