logo
docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c
linux/amd64 docker.io

这个Docker镜像包含Go语言测试框架stretchr/testify,常用于Go项目的单元测试、断言及mock功能实现,方便在容器化环境中进行Go应用的测试工作。

11
浏览次数
2.91GB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c
源镜像
docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c
镜像ID
sha256:321f200b86f04fe1cab916f6334c54d45818a0b3857b06ff299ee1cc8a7f40ed
镜像 TAG
1129-95d1f9c
镜像大小
2.91GB
平台架构
linux/amd64
镜像源
docker.io
CMD
/bin/bash
启动入口
工作目录
/testify
OS/平台
linux/amd64
镜像创建
2026-04-21T21:55:14.678717933Z
同步时间
2026-07-15 04:52
浏览量
11 次
贡献者
⚙️ 环境变量 5
KeyValue
TZ=Etc/UTC 0
LANG=C.UTF-8 1
LC_ALL=C.UTF-8 2
NO_CONDA=1 3
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/conda/bin:/opt/conda/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 4
🏷️ 镜像标签 3
KeyValue
1.38.1 io.buildah.version
ubuntu org.opencontainers.image.ref.name
22.04 org.opencontainers.image.version
🛡️ 镜像安全扫描
ubuntu 22.04 Trivy 2026-07-15 04:53 查看完整报告
483
低危 LOW
3596
中危 MEDIUM
614
高危 HIGH
58
严重 CRITICAL
受影响目标 (23)
docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c (ubuntu 22.04) ubuntu Conda conda-pkg Node.js node-pkg Python python-pkg usr/local/go/bin/go gobinary usr/local/go/bin/gofmt gobinary usr/local/go/pkg/tool/linux_amd64/addr2line gobinary usr/local/go/pkg/tool/linux_amd64/asm gobinary usr/local/go/pkg/tool/linux_amd64/buildid gobinary usr/local/go/pkg/tool/linux_amd64/cgo gobinary usr/local/go/pkg/tool/linux_amd64/compile gobinary usr/local/go/pkg/tool/linux_amd64/cover gobinary usr/local/go/pkg/tool/linux_amd64/dist gobinary usr/local/go/pkg/tool/linux_amd64/doc gobinary usr/local/go/pkg/tool/linux_amd64/fix gobinary usr/local/go/pkg/tool/linux_amd64/link gobinary usr/local/go/pkg/tool/linux_amd64/nm gobinary usr/local/go/pkg/tool/linux_amd64/objdump gobinary usr/local/go/pkg/tool/linux_amd64/pack gobinary usr/local/go/pkg/tool/linux_amd64/pprof gobinary usr/local/go/pkg/tool/linux_amd64/test2json gobinary usr/local/go/pkg/tool/linux_amd64/trace gobinary usr/local/go/pkg/tool/linux_amd64/vet gobinary

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c  docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c  docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c

Shell快速替换命令

sed -i 's#swerebenchv2/stretchr-testify:1129-95d1f9c#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c  docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c  docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c'

镜像构建历史


# 2026-04-22 05:55:16  0.00B 
/bin/sh
                        
# 2026-02-22 18:20:06  554.55MB 
/bin/sh -c #(nop) COPY file:a7cac65a21a51c0678fbcae0e33455ca9fa897b100fdecbcb50a733a39de126a in /swebench_matterhorn/swebench_instance.json 
                        
# 2026-02-22 18:20:01  0.00B 
/bin/sh -c #(nop) WORKDIR /testify
                        
# 2026-02-22 18:20:01  0.00B 
/bin/sh -c <<-DOCKER_RUN_EOF
set -eux;
    git clone -o origin https://github.com/stretchr/testify /testify;
    chmod -R 777 /testify;
    cd /testify;
    git reset --hard 95d1f9c2ada02b4fbb5a523e518c3fe9fa177ffb;
    ( export DEBIAN_FRONTEND=noninteractive && apt-get update -qq && apt-get install -y -qq golang ) || true;
    ( export HOME=/root && export XDG_CACHE_HOME=/root/.cache && export GOPATH=/go && export GOMODCACHE=$GOPATH/pkg/mod && export PATH=$PATH:$GOPATH/bin && mkdir -p $HOME $XDG_CACHE_HOME ) || true;
    ( export HOME=/root && export XDG_CACHE_HOME=/root/.cache && export GOPATH=/go && export GOMODCACHE=$GOPATH/pkg/mod && export PATH=$PATH:$GOPATH/bin && go mod download ) || true;
    # Keep only the checked-out commit and remove refs/history that can point
    # to newer commits.
    git checkout --detach 95d1f9c2ada02b4fbb5a523e518c3fe9fa177ffb;
    for r in $(git remote); do
        git remote remove "$r";
    done;
    git for-each-ref --format='delete %(refname)' refs/heads refs/remotes refs/tags | git update-ref --stdin;
    git reflog expire --expire=now --expire-unreachable=now --all;
    git gc --prune=now;
                        
# 2026-02-22 18:19:51  0.00B 
/bin/sh -c #(nop) ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/conda/bin:$PATH
                        
# 2026-02-22 18:19:40  1.52GB 
/bin/sh -c #(nop) ENV NO_CONDA=1
                        
# 2026-02-22 18:19:32  0.00B 
/bin/sh -c mkdir -p /swebench_matterhorn     && tar -xzf /swebench_matterhorn_repo.tar.gz -C /swebench_matterhorn     && rm /swebench_matterhorn_repo.tar.gz     && mkdir -p /opt/conda/envs/swebench_matterhorn     && tar -xzf /swebench_matterhorn_env.tar.gz -C /opt/conda/envs/swebench_matterhorn     && rm /swebench_matterhorn_env.tar.gz     && /opt/conda/envs/swebench_matterhorn/bin/conda-unpack
                        
# 2026-02-22 18:19:25  0.00B 
/bin/sh -c #(nop) COPY file:61604c43c292b48546055579c93885a922428ac04b5a3f2bd7c87a6a8208dbd4 in / 
                        
# 2026-02-22 18:19:25  0.00B 
/bin/sh -c #(nop) COPY file:38d2cec6c3688d3db2fdf6a899d279ccf0f0bf78f9acc300722c98b6d67c4b26 in / 
                        
# 2026-02-22 18:19:24  0.00B 
/bin/sh -c wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py312_24.7.1-0-Linux-x86_64.sh -O ~/miniconda.sh &&     /bin/bash ~/miniconda.sh -b -p /opt/conda &&     rm ~/miniconda.sh &&     /opt/conda/bin/conda clean -tip &&     ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh &&     echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc
                        
# 2026-02-22 18:19:18  0.00B 
/bin/sh -c apt-get update --fix-missing &&     apt-get install -y bzip2 ca-certificates wget git &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*
                        
# 2026-02-22 18:19:13  0.00B 
/bin/sh -c #(nop) ENV PATH=/opt/conda/bin:$PATH
                        
# 2026-02-22 18:19:13  0.00B 
/bin/sh -c #(nop) ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
                        
# 2026-01-16 00:09:52  333.87KB 执行命令并创建新的镜像层
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c adduser --disabled-password --gecos 'dog' nonroot # buildkit
                        
# 2026-01-16 00:09:51  0.00B 执行命令并创建新的镜像层
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c go version # buildkit
                        
# 2026-01-16 00:09:51  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2026-01-16 00:09:51  459.38MB 执行命令并创建新的镜像层
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c set -eux; 	now="$(date '+%s')"; 	arch="$(dpkg --print-architecture)"; 	url=; 	case "$arch" in 		'amd64') 			url='https://dl.google.com/go/go1.19.13.linux-amd64.tar.gz'; 			;; 		'armhf') 			url='https://dl.google.com/go/go1.19.13.linux-armv6l.tar.gz'; 			;; 		'arm64') 			url='https://dl.google.com/go/go1.19.13.linux-arm64.tar.gz'; 			;; 		'i386') 			url='https://dl.google.com/go/go1.19.13.linux-386.tar.gz'; 			;; 		'mips64el') 			url='https://dl.google.com/go/go1.19.13.linux-mips64le.tar.gz'; 			;; 		'ppc64el') 			url='https://dl.google.com/go/go1.19.13.linux-ppc64le.tar.gz'; 			;; 		'riscv64') 			url='https://dl.google.com/go/go1.19.13.linux-riscv64.tar.gz'; 			;; 		's390x') 			url='https://dl.google.com/go/go1.19.13.linux-s390x.tar.gz'; 			;; 		*) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; 	esac; 		wget -O go.tgz "$url" --progress=dot:giga;     tar -C /usr/local -xzf go.tgz;     rm go.tgz; # buildkit
                        
# 2026-01-16 00:09:32  296.07MB 执行命令并创建新的镜像层
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c apt update && apt install -y wget git build-essential && rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2026-01-16 00:09:32  0.00B 设置环境变量 TZ
ENV TZ=Etc/UTC
                        
# 2026-01-16 00:09:32  0.00B 定义构建参数
ARG DEBIAN_FRONTEND=noninteractive
                        
# 2025-10-14 01:23:20  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2025-10-14 01:23:20  77.87MB 
/bin/sh -c #(nop) ADD file:d025507456f1d7d19195885b1c02a346454d60c9348cbd3be92431f2d7e2666e in / 
                        
# 2025-10-14 01:23:18  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.version=22.04
                        
# 2025-10-14 01:23:18  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu
                        
# 2025-10-14 01:23:18  0.00B 
/bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH
                        
# 2025-10-14 01:23:18  0.00B 
/bin/sh -c #(nop)  ARG RELEASE
                        
                    

镜像信息

{
    "Id": "sha256:321f200b86f04fe1cab916f6334c54d45818a0b3857b06ff299ee1cc8a7f40ed",
    "RepoTags": [
        "swerebenchv2/stretchr-testify:1129-95d1f9c",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c"
    ],
    "RepoDigests": [
        "swerebenchv2/stretchr-testify@sha256:47996bb970ef9768546c1407d99bee1d756e9da38e99c27e6c1425a652850678",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/stretchr-testify@sha256:906149da2989c668ea9794d780f02bfd0a2ba40b1d2132d73a6affcdeb51598d"
    ],
    "Parent": "",
    "Comment": "FROM docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c",
    "Created": "2026-04-21T21:55:14.678717933Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "cf12fd561fd1",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "TZ=Etc/UTC",
            "LANG=C.UTF-8",
            "LC_ALL=C.UTF-8",
            "NO_CONDA=1",
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/conda/bin:/opt/conda/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "Cmd": [
            "/bin/bash"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/testify",
        "Entrypoint": null,
        "OnBuild": [],
        "Labels": {
            "io.buildah.version": "1.38.1",
            "org.opencontainers.image.ref.name": "ubuntu",
            "org.opencontainers.image.version": "22.04"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 2910844330,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/aa4685d2fb92332e1dc8593460d64cb1ffba5fd760f9872e18eb7008c28598f5/diff:/var/lib/docker/overlay2/e34a26a3e4c8e21a16c38ce43f30de7dee7a8f85b9368c2f728bbda385d9c7e4/diff:/var/lib/docker/overlay2/fdd6ab2b45a47408e05ca43dc5fd343d589ff62fde249b34e5cbf6dac31e9c8d/diff:/var/lib/docker/overlay2/0f0cdfccb4d3414a63217f922cbcc8bd43f3ee45c98fa326550ffde1d2fe3348/diff:/var/lib/docker/overlay2/f1cb8f3eaf26b803e91b84bdc8b2c9c2c01c6a56b570bdfe80f2d9d83338d510/diff:/var/lib/docker/overlay2/6735caedf44bf271dd8520a5f6f062d675373cdb31eeaed96d602cb15cf99ad1/diff:/var/lib/docker/overlay2/494052ebd0d7093a2919ea6da70b0cc68dda59cc59824edfab742d53363834e0/diff",
            "MergedDir": "/var/lib/docker/overlay2/3fbc35b02628db80cd65c5d563d326598fe000859f6170e5133ada5b7d216895/merged",
            "UpperDir": "/var/lib/docker/overlay2/3fbc35b02628db80cd65c5d563d326598fe000859f6170e5133ada5b7d216895/diff",
            "WorkDir": "/var/lib/docker/overlay2/3fbc35b02628db80cd65c5d563d326598fe000859f6170e5133ada5b7d216895/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:73974f74b436f39a2fdb6461b1e3f7c3e41c73325776fa71d16b942a5b4a365b",
            "sha256:21a54c18e0ac53f05802e0490c933d7b4646c84ee1e38698733ab8348e324172",
            "sha256:d470c2401f710f32c909dd949600333c3101ccf3d0da05c660479ef41375b8c6",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:6ba31c38ae603ff441984fbba4f5134ebcbba76bafad9ba077c263298ec4a728",
            "sha256:d1c96af8c2e1c9b3c9ac2bc653ddb96b96d3ee3b7728c69354a697e378d4cc2d",
            "sha256:ec14b5cce8ab90375c71eba41f2ba969b9e0b0fa768f3491c24a1dab92cc561a",
            "sha256:03a84fa1d037f787b665bb3146389cc4b10eb1117f34a675b233ae55a08b022c"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-07-15T04:47:26.066213309+08:00"
    }
}

更多版本

docker.io/swerebenchv2/stretchr-testify:1664-a1b9c9e

linux/amd64 docker.io2.91GB2026-07-15 04:32
12

docker.io/swerebenchv2/stretchr-testify:1129-95d1f9c

linux/amd64 docker.io2.91GB2026-07-15 04:52
10

docker.io/swerebenchv2/stretchr-testify:1337-bb548d0

linux/amd64 docker.io2.91GB2026-07-15 07:01
9
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×