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?