in DevOps by
Q:

Q. What is the difference between the `COPY` and `ADD` commands in a Dockerfile?

1 Answer

0 votes
by

Although ADD and COPY are functionally similar, generally speaking, COPY is preferred.

That’s because it’s more transparent than ADD. COPY only supports the basic copying of local files into the container, while ADD has some features (like local-only tar extraction and remote URL support) that are not immediately obvious. Consequently, the best use for ADD is local tar file auto-extraction into the image, as in ADD rootfs.tar.xz /.

Click here to read more about DevOps
Click here to read more about Insurance

Related questions

0 votes
asked Aug 15, 2020 in Continuous Deployment by RShastri
+1 vote
asked Aug 15, 2020 in DevOps by RShastri
+1 vote
asked Aug 15, 2020 in DevOps by RShastri
0 votes
+1 vote
asked Aug 15, 2020 in DevOps by RShastri
0 votes
asked Aug 15, 2020 in DevOps by RShastri
+1 vote
asked Jan 16, 2020 in QuickTest Professional (QTP) by JackTerrance
+1 vote
asked May 29, 2019 in Machine Learning by param1987
...