$ ./guess_the_languageDevOps
DevOps · medium · #245

How does ARG differ from ENV in a Dockerfile?

  1. ARG values are encrypted in the image
  2. ENV can only hold numeric values
  3. ARG exists only during the build
  4. ARG is set at docker run time
ARG values are available to build steps only; ENV persists into the image and the running container.
Play DevOps ▸