Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get dockerfile / docker commands from docker image

Tags:

docker

Is it possible to get back the docker commands which were run to produce a given docker image? Since each line of a docker file should map to a single layer, it seems this would be possible, but I don't see anything in the docs.

like image 576
Daniel Kats Avatar asked Dec 12 '22 04:12

Daniel Kats


1 Answers

docker history <image>

Does pretty much that.

like image 128
Steve Avatar answered Jan 18 '23 23:01

Steve