在哪里可以看到Docker镜像的Dockerfile? [英] Where to see the Dockerfile for a docker image?
本文介绍了在哪里可以看到Docker镜像的Dockerfile?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以查看生成我下载的映像的Dockerfile,并用作自己的Docker映像的模板?
Is there a way to see the Dockerfile that generated an image I downloaded, to use as a template for my own docker images?
推荐答案
使用
docker history --no-trunc IMAGE_NAME_OR_ID
这将以相反的顺序显示在映像构建过程中运行的所有命令。它并不完全是一个Dockerfile,但是您可以找到所有基本内容。
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.
这篇关于在哪里可以看到Docker镜像的Dockerfile?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文