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

Why is COPY usually preferred over ADD?

Explanation

ADD has extra behavior (auto-extracting local tar files, downloading URLs) that can surprise you. Use COPY unless you need exactly that.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 7

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