Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker copy from container to host

# container to host
ocker cp <containerId>:/file/path/within/container /host/path/target

# host to container
docker cp /host/local/path/file <containerId>:/file/path/in/container/file
Source by mkyong.com #
 
PREVIOUS NEXT
Tagged: #docker #copy #container #host
ADD COMMENT
Topic
Name
8+4 =