If I have locally docker image. How Could I list w

2019-08-30 02:31发布

问题:

This question already has an answer here:

  • How to generate a Dockerfile from an image? 8 answers

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?

回答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.



标签: image docker