0 votes
in Docker by
What are the difference between Docker ADD and COPY instructions?

1 Answer

0 votes
by

The Docker ADD command enables us to copy files and directories from the local machine to the containers. It can copy files from a directory, a URL, Git, Bitbucket, or even an archived file. If we specify the source directory as an archive file, the ADD command will extract it and then load it to the container. The Docker COPY command also copies files to the container. However, it only copies from directories and does not support copying from URLs. If we specify an archived file, the COPY command will copy it as it is without extracting it.

...