copy file from docker container to host
docker cp <containerId>:/file/path/within/container /host/path/target
copy file from docker container to host
docker cp <containerId>:/file/path/within/container /host/path/target
copy file from host to docker container
docker cp foo.txt mycontainer:/foo.txt
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 .
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us