DockerFile: difference between ADD and COPY

In accordance with this, the following link https://docs.docker.com/engine/reference/builder/#copy I do not see the difference between ADD and COPY. Please help me with a simple example explaining the difference.

+6
source share
1 answer

Found the answer here: Docker COPY vs ADD

  • ADD allows <src> be a URL
  • If the <src> parameter for ADD is an archive in a recognized compression format, it will be unpacked
+14
source

All Articles