且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在哪里可以看到Docker镜像的Dockerfile?

更新时间:2023-02-26 19:32:22

使用

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.