Issue
I have pulled a docker image from a serve and I want to extract data from that image.
Is there any command for extracting data from an image?
Solution
A method is to first run your image:
docker run -it -d IMAGE:TAG
docker ps
and then use docker cp command:
docker cp CONTAINER_ID:/foo.txt foo.txt
Also you can copy to image
docker cp foo.txt CONTAINER_ID:/foo.txt
Answered By - 4ndt3s Answer Checked By - Senaida (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.