registry.k8s.io/build-image/setcap:bookworm-v1.0.3 linux/amd64

registry.k8s.io/build-image/setcap:bookworm-v1.0.3 - 国内下载镜像源 浏览次数:33 安全受验证的发布者-Kubernetes

registry.k8s.io/build-image/setcap 镜像描述

该镜像用于在构建容器时,为容器内的二进制文件添加 Linux 能力(capabilities)。 * 镜像包含 `setcap` 命令,用于设置文件能力。 * 可以通过使用 `Dockerfile` 中的 `COPY` 指令将二进制文件复制到镜像中,然后使用 `RUN setcap` 命令设置其能力。 * 该镜像通常与其他构建镜像一起使用,用于构建需要特定能力的应用程序。 **注意:** 使用 `setcap` 设置能力可能会带来安全风险,请谨慎操作。
源镜像 registry.k8s.io/build-image/setcap:bookworm-v1.0.3
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3
镜像ID sha256:5bab906cc1ce3886295d2c7f3fb67c7f376f46a74a3aff252d933c8b97c365bf
镜像TAG bookworm-v1.0.3
大小 83.17MB
镜像源 registry.k8s.io
CMD /bin/sh
启动入口
工作目录 /
OS/平台 linux/amd64
浏览量 33 次
贡献者
镜像创建 2024-06-06T13:31:26.492115772Z
同步时间 2024-11-14 18:09
更新时间 2024-12-02 22:29
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.5 扫描引擎: Trivy 扫描时间: 2024-11-14 18:09

低危漏洞:55 中危漏洞:14 高危漏洞:9 严重漏洞:1

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3  registry.k8s.io/build-image/setcap:bookworm-v1.0.3

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3  registry.k8s.io/build-image/setcap:bookworm-v1.0.3

Shell快速替换命令

sed -i 's#registry.k8s.io/build-image/setcap:bookworm-v1.0.3#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3  registry.k8s.io/build-image/setcap:bookworm-v1.0.3'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3  registry.k8s.io/build-image/setcap:bookworm-v1.0.3'

镜像历史

大小 创建时间 层信息
19.96MB 2024-06-06 21:31:26 RUN |1 BASEIMAGE=registry.k8s.io/build-image/debian-base-amd64:bookworm-v1.0.3 /bin/sh -c apt-get update && apt-get -y --allow-change-held-packages install libcap2 libcap2-bin # buildkit
0.00B 2024-06-06 21:31:26 ARG BASEIMAGE
0.00B 2024-05-13 20:11:36 CMD ["/bin/sh"]
63.21MB 2024-05-13 20:11:36 ADD rootfs.tar / # buildkit

镜像信息

{
    "Id": "sha256:5bab906cc1ce3886295d2c7f3fb67c7f376f46a74a3aff252d933c8b97c365bf",
    "RepoTags": [
        "registry.k8s.io/build-image/setcap:bookworm-v1.0.3",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap:bookworm-v1.0.3"
    ],
    "RepoDigests": [
        "registry.k8s.io/build-image/setcap@sha256:8b21d00a48f9f4ddad912ff27a4012aff67a76595820b4177bba092e0a283b7c",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/registry.k8s.io/build-image/setcap@sha256:0a12d882996c980040433c63ae25104da60d2f23f8efa2568d47d2e3e370e365"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-06-06T13:31:26.492115772Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "Cmd": [
            "/bin/sh"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 83165889,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/aacd1534578f978ae24c7a96f4fcae8133a6aa5499b09938bb45553722bf573c/diff",
            "MergedDir": "/var/lib/docker/overlay2/bd9e099ab11fc9190d5490bab06860f2928301d2fff05f51b593b65ff89d022b/merged",
            "UpperDir": "/var/lib/docker/overlay2/bd9e099ab11fc9190d5490bab06860f2928301d2fff05f51b593b65ff89d022b/diff",
            "WorkDir": "/var/lib/docker/overlay2/bd9e099ab11fc9190d5490bab06860f2928301d2fff05f51b593b65ff89d022b/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:4b6c62094702c4e02a246884c1ae6b11f3dd66f933ffbc582176b7cf5a1043b3",
            "sha256:a306091904a0f834fecdd5087be0898ad731c955c574cd0491e809f1c7142f20"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-14T18:08:57.734132696+08:00"
    }
}

更多版本

registry.k8s.io/build-image/setcap:bookworm-v1.0.3

linux/amd64 registry.k8s.io83.17MB2024-11-14 18:09
32