Is there a way to see the Dockerfile that generated an image I downloaded, to use as a template for my own docker images?
Asked
Active
Viewed 1,834 times
1 Answers
13
Use
docker history --no-trunc IMAGE_NAME_OR_ID
This will show all commands run in the image building process in reverse order. It's not exactly a Dockerfile, but you can find all essential content.
Xiongbing Jin
- 10,861
- 3
- 42
- 38