How does ARG differ from ENV in a Dockerfile?
- ARG values are encrypted in the image
- ENV can only hold numeric values
- ARG exists only during the build
- 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 ▸