0

For instance I have this image locally https://github.com/topflight-technology/docker-images/tree/master/go-testing. Then system lost all info about it. So how we could recreate the image docker file? Or at list get the list what tools are installed.

docker ps -a
CONTAINER ID        IMAGE                      COMMAND             CREATED             STATUS                      PORTS               NAMES
f047b64e79d1        topflighttech/go-testing   "/bin/sh"           28 seconds ago      Exited (0) 26 seconds ago                       friendly_leakey

So I need to investigate docker container or strait forward image?

Janis Karklins
  • 503
  • 1
  • 7
  • 19
  • The link you provided also seems to have a Dockerfile, and you seem to have launched the container with an interactive shell; both of these things should be good for looking around. – David Maze May 02 '19 at 14:12
  • Here I should check first https://stackoverflow.com/questions/19104847/how-to-generate-a-dockerfile-from-an-image. – Janis Karklins May 02 '19 at 14:18

1 Answers1

1

You can see the history of an image by running docker history --no-trunc your_image:tag. With no other resource available, this might help you to recreate the Dockerfile.

bellackn
  • 1,939
  • 13
  • 22