Answers for "copy file docker"

10

copy files from a docker container to the host machine using cmd

docker cp <containerId>:/file/path/within/container /host/path/target
Posted by: Guest on June-23-2020
3

copy file to docker container

docker cp foo.txt mycontainer:/foo.txt
Posted by: Guest on June-11-2020
1

dockerfile copy specific files

COPY ["__BUILD_NUMBER", "README.md", "gulpfile", "another_file", "./"]
		All the files and folders, the last is destination
Posted by: Guest on November-05-2020

Browse Popular Code Answers by Language