Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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 .


Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Copying #files #Docker #container #host
ADD COMMENT
Topic
Name
9+7 =