ℹ️
注意:这是一个 latest 标签镜像

latest 并不代表最新版本,本站同步时间存在延迟,无法保证此镜像与上游最新版本一致
生产环境建议使用明确的版本号(如 v1.2.3),避免因版本不一致导致问题。 了解更多 →

ghcr.io/flant/shell-operator:latest linux/amd64

ghcr.io/flant/shell-operator:latest - 国内下载镜像源 浏览次数:16

Shell-operator是由Flant开发的轻量级Kubernetes运算符框架,允许用户使用Shell脚本或其他脚本语言编写运算符逻辑,无需编写Go代码。它可监听Kubernetes集群中的资源变化,并根据预定义规则触发相应脚本执行,实现自定义资源管理与自动化操作。

源镜像 ghcr.io/flant/shell-operator:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest
镜像ID sha256:b817608648c13a7e1fea5c8beebf0f61391d3e5eeab7ae1f9f75b8a48b6b6727
镜像TAG latest
大小 159.91MB
镜像源 ghcr.io
CMD start
启动入口 /sbin/tini -- /shell-operator
工作目录 /
OS/平台 linux/amd64
浏览量 16 次
贡献者
镜像创建 2026-06-09T12:46:56.664815785Z
同步时间 2026-06-11 16:47
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin SHELL_OPERATOR_HOOKS_DIR=/hooks LOG_TYPE=json
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.23.4 扫描引擎: Trivy 扫描时间: 2026-06-11 16:47

低危漏洞:0 中危漏洞:5 高危漏洞:9 严重漏洞:0

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest  ghcr.io/flant/shell-operator:latest

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest  ghcr.io/flant/shell-operator:latest

Shell快速替换命令

sed -i 's#ghcr.io/flant/shell-operator:latest#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest  ghcr.io/flant/shell-operator:latest'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest  ghcr.io/flant/shell-operator:latest'

镜像构建历史


# 2026-06-09 20:46:56  0.00B 设置默认要执行的命令
CMD ["start"]
                        
# 2026-06-09 20:46:56  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/sbin/tini" "--" "/shell-operator"]
                        
# 2026-06-09 20:46:56  0.00B 设置环境变量 LOG_TYPE
ENV LOG_TYPE=json
                        
# 2026-06-09 20:46:56  0.00B 设置环境变量 SHELL_OPERATOR_HOOKS_DIR
ENV SHELL_OPERATOR_HOOKS_DIR=/hooks
                        
# 2026-06-09 20:46:56  0.00B 设置工作目录为/
WORKDIR /
                        
# 2026-06-09 20:46:56  81.61MB 复制新文件或目录到容器中
COPY /app/shell-operator / # buildkit
                        
# 2026-06-09 20:42:28  1.10MB 复制新文件或目录到容器中
COPY /bin/jq /usr/bin # buildkit
                        
# 2026-06-09 20:42:28  636.00B 复制文件或目录到容器中
ADD shell_lib.sh / # buildkit
                        
# 2026-06-09 20:42:28  5.85KB 复制文件或目录到容器中
ADD frameworks/shell /frameworks/shell # buildkit
                        
# 2026-06-09 20:42:28  0.00B 执行命令并创建新的镜像层
RUN |2 TARGETPLATFORM=linux/amd64 kubectlVersion=v1.34.8 /bin/sh -c mkdir /hooks # buildkit
                        
# 2026-06-09 20:42:28  60.70MB 执行命令并创建新的镜像层
RUN |2 TARGETPLATFORM=linux/amd64 kubectlVersion=v1.34.8 /bin/sh -c kubectlArch=$(echo ${TARGETPLATFORM:-linux/amd64} | sed 's/\/v7//') &&     echo "Downloading kubectl version ${kubectlVersion} for ${kubectlArch}" &&     wget https://dl.k8s.io/release/${kubectlVersion}/bin/${kubectlArch}/kubectl -O /bin/kubectl &&     chmod +x /bin/kubectl # buildkit
                        
# 2026-06-09 20:42:27  8.05MB 执行命令并创建新的镜像层
RUN |2 TARGETPLATFORM=linux/amd64 kubectlVersion=v1.34.8 /bin/sh -c apk --no-cache add     ca-certificates     bash     sed     tini     curl # buildkit
                        
# 2026-06-09 20:42:27  0.00B 定义构建参数
ARG kubectlVersion=v1.34.8
                        
# 2026-06-09 20:42:27  0.00B 定义构建参数
ARG TARGETPLATFORM=linux/amd64
                        
# 2026-04-16 04:01:40  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2026-04-16 04:01:40  8.45MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.23.4-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:b817608648c13a7e1fea5c8beebf0f61391d3e5eeab7ae1f9f75b8a48b6b6727",
    "RepoTags": [
        "ghcr.io/flant/shell-operator:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator:latest"
    ],
    "RepoDigests": [
        "ghcr.io/flant/shell-operator@sha256:d200650e80f3d665c36eb8afe3660e584085e9cf36323a3526344e625a272a1b",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/flant/shell-operator@sha256:4f3bd0b8f39119e20ffcb72f361c812ef75bad5cd8ceea604ce017868804318e"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-06-09T12:46:56.664815785Z",
    "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",
            "SHELL_OPERATOR_HOOKS_DIR=/hooks",
            "LOG_TYPE=json"
        ],
        "Cmd": [
            "start"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": [
            "/sbin/tini",
            "--",
            "/shell-operator"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 159913423,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/e796d677990391b034413c9dbf59dd48d835083f97e0c9f3d602a16fbf16d311/diff:/var/lib/docker/overlay2/8b9e71564532c59f923a1295b0727b70d6f48d4a2e053628fa61072c2e88c682/diff:/var/lib/docker/overlay2/b648fe9755b04e941eb552967bd0d72a86a98f76bdf718c2e49c6d058b0771f4/diff:/var/lib/docker/overlay2/41cd222670791494005529dcf46e7787c65dbd606c07251f16c513336bb8ee24/diff:/var/lib/docker/overlay2/07c4ee6221108b445f24daeaecfd95733eedb7d55c1d649a3e70d682cf7b9364/diff:/var/lib/docker/overlay2/bdc37a929e8a133485060c5319c1f9c915347ac1c9b861c76f807f0a793b77a6/diff:/var/lib/docker/overlay2/9a1ef5a883ef2cbf9a0d960bba5d783f7ecd7d9d3ba8bb8cd5537b33d65a942f/diff",
            "MergedDir": "/var/lib/docker/overlay2/610eab801eee10ef1770248608d9e5054c7c90adf67b43b7db02cf47f2387a45/merged",
            "UpperDir": "/var/lib/docker/overlay2/610eab801eee10ef1770248608d9e5054c7c90adf67b43b7db02cf47f2387a45/diff",
            "WorkDir": "/var/lib/docker/overlay2/610eab801eee10ef1770248608d9e5054c7c90adf67b43b7db02cf47f2387a45/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:29df493baa13de438d6d2ece3a8333032e0b7b9b9d8cce4ee82194da255f61e1",
            "sha256:53b1dc0c66d955fceed26b962cf5d3447a497bb9eabc2379e3d41c0a92d9db7e",
            "sha256:16dd72ef11276d988be3a6aabf393e676029c4c8e748934a6e20fa248b0d1306",
            "sha256:423c8c9a7f4484c92fc49e4f90a334bfec8325ba695efedfeeeac3ba9d550efe",
            "sha256:a1b60236b6933b591bf02faaa38686cf37e0977ea7aeb17081922dd72bbc7fb5",
            "sha256:1e203bb3e4bd32f4a6fbbb55a6699e6aaebfe8306bf86f39b342a934f8974877",
            "sha256:03ebbf142df76b74b96c3a34d9a7c2762d32dadac3007cde6fec1925c1388137",
            "sha256:bbfb8cc57cdd2c3811f8cce731ea33fd25111c160c1da2a5a37762ba8727e7f2"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-06-11T16:47:37.541067517+08:00"
    }
}

更多版本

ghcr.io/flant/shell-operator:latest

linux/amd64 ghcr.io159.91MB2026-06-11 16:47
15