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

2019-08-30 02:11发布

This question already has an answer here:

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?

标签: image docker
1条回答
倾城 Initia
2楼-- · 2019-08-30 02:29

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.

查看更多
登录 后发表回答