JIB - 是否可以看到在幕后创建的 dockerfile jib?
JIB - Is it possible to see the dockerfile jib creates behind the scenes?
是否可以查看 dockerjib 在幕后创建的文件?如果是,那么我在哪里以及如何找到它?
上下文 - 我对 docker 文件有点熟悉,并希望确保生成的 docker 文件具有我的应用成功 运行 所需的一切。
Jib 在图像构建过程中不会生成 Dockerfile
或使用任何 Docker。您无需安装 Docker 即可使用 Jib。
对于一个正常的项目,如果存在 Dockefile
,它的某些部分大致看起来像 this。但是,请注意 link 中的 Dockerfile
主要用于提供信息;几乎一直以来,都没有Dockerfile
能够准确再现Jib生成的图像。
相关,注意 Jib 的工作方式是 fundamentally different 而不是 Docker 的:
the way Jib builds an image is fundamentally different from how the Docker CLI builds an image using Dockerfile
(reproducible vs. non-reproducible, declarative vs. imperative, Docker and Dockerfile-less build vs. requiring Docker daemon and client, requiring root-privilege vs. not). Jib is in a very different realm ...
更新:如果您想检查构建的图像,请查看 dive。
是否可以查看 dockerjib 在幕后创建的文件?如果是,那么我在哪里以及如何找到它?
上下文 - 我对 docker 文件有点熟悉,并希望确保生成的 docker 文件具有我的应用成功 运行 所需的一切。
Jib 在图像构建过程中不会生成 Dockerfile
或使用任何 Docker。您无需安装 Docker 即可使用 Jib。
对于一个正常的项目,如果存在 Dockefile
,它的某些部分大致看起来像 this。但是,请注意 link 中的 Dockerfile
主要用于提供信息;几乎一直以来,都没有Dockerfile
能够准确再现Jib生成的图像。
相关,注意 Jib 的工作方式是 fundamentally different 而不是 Docker 的:
the way Jib builds an image is fundamentally different from how the Docker CLI builds an image using
Dockerfile
(reproducible vs. non-reproducible, declarative vs. imperative, Docker and Dockerfile-less build vs. requiring Docker daemon and client, requiring root-privilege vs. not). Jib is in a very different realm ...
更新:如果您想检查构建的图像,请查看 dive。