Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker copy file from container to host

$ docker run -d --name httpd httpd

$ docker exec httpd pwd
/usr/local/apache2

$ docker exec httpd ls
bin
build
cgi-bin
conf
error
htdocs
icons
include
logs
modules

$ docker cp httpd:/usr/local/apache2/conf .
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #docker #copy #file #container #host
ADD COMMENT
Topic
Name
3+2 =