Answers for "copy file from docker container to host 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
1

copy file to docker conatiner using docker dockerfile

COPY foo.txt /data/foo.txt
# where foo.txt is the relative path on host
# and /data/foo.txt is the absolute path in the image
Posted by: Guest on September-25-2021

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

Browse Popular Code Answers by Language