简体   繁体   English

如何访问 docker 图像的 Dockerfile?

[英]How to get access to Dockerfile of a docker image?

Below is the docker image:下面是 docker 图像:

https://console.cloud.google.com/gcr/images/distroless/GLOBAL/base https://console.cloud.google.com/gcr/images/distroless/GLOBAL/base

Goal is to find, if this image is based on debian or rpm based Linux distro.目标是找到,如果此图像基于 debian 或基于 rpm 的 Linux 发行版。


  1. How to find the Dockerfile for this image?如何找到此图像的 Dockerfile?

  2. What does distroless image mean? distroless 镜像是什么意思?

How to find the Dockerfile for this image?如何找到此图像的 Dockerfile?

There is no Dockerfile for that image.该图像没有 Dockerfile。

The gcr.io/distroless/base image is built from this repository . gcr.io/distroless/base映像是从此存储库构建的。 If you read through the README , you'll find:如果您通读README ,您会发现:

How do I use distroless images?如何使用 distroless 映像?

These images are built using bazel, but they can also be used through other Docker image build tooling.这些镜像是使用 bazel 构建的,但它们也可以通过其他 Docker 镜像构建工具使用。

Bazel is a build tool that can be used to create Docker images . Bazel 是一个构建工具,可用于创建 Docker 映像

What does distroless image mean? distroless 镜像是什么意思?

That means the image isn't based on any particular distribution;这意味着图像不基于任何特定的分布; it includes only a minimal set of files so that the final image contains only what is strictly necessary to run your application:它仅包含最少的文件集,因此最终图像仅包含运行应用程序所必需的内容:

  • ca-certificates ca 证书
  • A /etc/passwd entry for a root user root 用户的 /etc/passwd 条目
  • A /tmp directory /tmp 目录
  • tzdata数据
  • glibc glibc
  • libssl libssl
  • openssl openssl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 docker build 上指定到 Dockerfile 的绝对路径 - How to specify absolute path to Dockerfile on docker build golang项目是否有任何替代JIB,它使用dockerfile创建docker图像 - Is there any alternative of JIB for golang project, which creates the docker image withour using dockerfile 从不同项目访问 GCP Docker 图像 - Access GCP Docker image from different project 如何将 MS Access 驱动程序安装到我的 docker 图像? 或者还有其他解决此问题的方法吗? - How to install MS Access Driver to my docker image? Or is there any other work around this problem? Windows Docker 图像没有 inte.net 访问权限 - Windows Docker image has no internet access 如何在基础 AWS Lambda Node.js Dockerfile 图像中安装依赖项 - How to install dependencies in base AWS Lambda Node.js Dockerfile image 如何在 Sagemaker 中运行本地准备的 docker 镜像? - How to run docker image prepared locally in Sagemaker? 如何在 Airflow 中构建一个 docker 镜像 - How to build a docker image inside Airflow 如何将Docker镜像推送到Jenkins中的ECR? - How to push Docker image to ECR in Jenkins? 如何使用 buildspec.yml 在 AWS CodePipeline 中从 Dockerfile 构建图像,然后推送到 ECR? - How to build Image from Dockerfile in AWS CodePipeline using buildspec.yml, and then push to ECR?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM