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?
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.