paint-brush
Shall I Use ADD or COPY in the Dockerfile - What's the Difference?by@sudip-sengupta
266 reads

Shall I Use ADD or COPY in the Dockerfile - What's the Difference?

by Sudip Sengupta4mSeptember 4th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Dockerfile developers copy files and directories from the host machine into the Docker image during image build. The COPY instruction is "the same as ADD, but without the tar and URL handling" COPY can extract and copy local tar archives and it can also download files from URLs. The best practice is to use a COPY instead of ADD to unpack local archives and download URLs. If Docker does not recognize the archive format during the build, it will copy the archive as it is into the image without warning.

Company Mentioned

Mention Thumbnail
featured image - Shall I Use ADD or COPY in the Dockerfile - What's the Difference?
Sudip Sengupta HackerNoon profile picture
Sudip Sengupta

Sudip Sengupta

@sudip-sengupta

Solution Architect | Technical Content Writer

Learn More
LEARN MORE ABOUT @SUDIP-SENGUPTA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Sudip Sengupta HackerNoon profile picture
Sudip Sengupta@sudip-sengupta
Solution Architect | Technical Content Writer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Coffee-web
Blogofscience