Docker and CI/CD · Junior · Question 22 of 75

What is the difference between ARG and ENV?

Explanation

ARG values are passed with --build-arg and vanish after the build. ENV values are stored in the image and visible to the running app. Neither is a safe place for secrets.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 22

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz