PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, October 18, 2022

[FIXED] How to extract data from docker images

 October 18, 2022     docker     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing