Docker Hub
hub.docker.com › dockerfile-from-imageThe dockerfile-from-image script works by simply walking backward through the layer tree and collecting the commands stored with each layer. When the script reaches the first tagged layer (or the root of the tree) it stops and displays the (reversed) list of commands. If you want to generate the commands going all the way back to the root image ...