In Docker Hub images there are lists of commands that being run for each image layer. Here is a golang example.
Some applications also provide their Dockerfile in GitHub. Here is a golang example.
According to the Docker Hub image layer, ADD file:4b03b5f551e3fbdf47ec609712007327828f7530cc3455c43bbcdcaf449a75a9 in / is the first command. The image layer doesn't have any "FROM" command included, and it doesn't seem to be suffice the ADD definition too.
So here are the questions:
- What does
ADD file:<HASH> in /means? What is this format? - Is there any way I could trace upwards using the hash? I suppose that hash represents the
FROMimage, but it seems there are no API for that. - Why it is not possible to build a dockerfile using the
ADD file:<HASH> in /syntax? Is there any way I could build an image using such syntax, OR do a conversion between two format?