This is a very common interview question for Docker. While writing a Dockerfile, COPY will copy the files from local host server inside to Docker Container whereas ADD can copy with Remote URL as well inside the container by downloading the file from the source URL or copying it from local server.
This is a very common interview question for Docker. While writing a Dockerfile, COPY will copy the files from local host server inside to Docker Container whereas ADD can copy with Remote URL as well inside the container by downloading the file from the source URL or copying it from local server.