Answers for "copy file from host to container docker dockerfile"

13

copy file from docker container to host

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

Docker: Copying files from Docker container to host

for copy file from a container to the host use the command
docker cp <containerId>:/file/path/within/container /host/path/target

You can also use (part of) the Container ID. The following command is equivalent to the first
sudo docker cp 1b4a:/out_read.jpg .
Posted by: Guest on January-20-2022

Code answers related to "copy file from host to container docker dockerfile"

Browse Popular Code Answers by Language