logo
docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429
linux/amd64 docker.io

该Docker镜像包含rust-analyzer工具,rust-analyzer是一款针对Rust语言的高性能代码分析器,提供代码补全、类型检查、代码跳转、重构等功能,适用于Rust项目的开发环境搭建或CI/CD流程中集成代码分析环节。

10
浏览次数
3.11GB
镜像大小
源镜像
docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429
镜像ID
sha256:e77cf06e6767f7bcc1c16c7895b3ee65097d78a840b00e0e7f217a9d73f5e99b
镜像 TAG
8307-b580429
镜像大小
3.11GB
平台架构
linux/amd64
镜像源
docker.io
CMD
bash
启动入口
工作目录
/rust-analyzer
OS/平台
linux/amd64
镜像创建
2026-04-21T20:16:10.897796456Z
同步时间
2026-07-07 02:41
浏览量
10 次
贡献者
⚙️ 环境变量 8
KeyValue
RUSTUP_HOME=/usr/local/rustup 0
CARGO_HOME=/usr/local/cargo 1
RUST_VERSION=1.84.1 2
TZ=Etc/UTC 3
LANG=C.UTF-8 4
LC_ALL=C.UTF-8 5
NO_CONDA=1 6
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/conda/bin:/opt/conda/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 7
🏷️ 镜像标签 2
KeyValue
1.38.1 io.buildah.version
https://github.com/rust-lang/docker-rust org.opencontainers.image.source
🛡️ 镜像安全扫描
debian 12.9 Trivy 2026-07-07 02:43 查看完整报告
1459
低危 LOW
3944
中危 MEDIUM
1541
高危 HIGH
224
严重 CRITICAL
受影响目标 (5)
docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429 (debian 12.9) debian Conda conda-pkg Node.js node-pkg Python python-pkg rust-analyzer/Cargo.lock cargo

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429  docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429  docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429

Shell快速替换命令

sed -i 's#swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429  docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429  docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429'

镜像构建历史


# 2026-04-22 04:16:12  0.00B 
/bin/sh
                        
# 2026-02-22 19:37:30  62.84MB 
/bin/sh -c #(nop) COPY file:d983443e44d89db4297992d3f9bde605752de4101241ee3312205a40c0321dc8 in /swebench_matterhorn/swebench_instance.json 
                        
# 2026-02-22 19:37:28  0.00B 
/bin/sh -c #(nop) WORKDIR /rust-analyzer
                        
# 2026-02-22 19:37:28  0.00B 
/bin/sh -c <<-DOCKER_RUN_EOF
set -eux;
    git clone -o origin https://github.com/rust-analyzer/rust-analyzer /rust-analyzer;
    chmod -R 777 /rust-analyzer;
    cd /rust-analyzer;
    git reset --hard b5804296ddceec7694d4787cec8ede726d64b8d2;
    ( curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ) || true;
    ( export PATH="/root/.cargo/bin:$PATH" ) || true;
    # Keep only the checked-out commit and remove refs/history that can point
    # to newer commits.
    git checkout --detach b5804296ddceec7694d4787cec8ede726d64b8d2;
    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 19:37:18  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 19:37:06  1.53GB 
/bin/sh -c #(nop) ENV NO_CONDA=1
                        
# 2026-02-22 19:36:58  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 19:36:51  0.00B 
/bin/sh -c #(nop) COPY file:61604c43c292b48546055579c93885a922428ac04b5a3f2bd7c87a6a8208dbd4 in / 
                        
# 2026-02-22 19:36:51  0.00B 
/bin/sh -c #(nop) COPY file:38d2cec6c3688d3db2fdf6a899d279ccf0f0bf78f9acc300722c98b6d67c4b26 in / 
                        
# 2026-02-22 19:36:50  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 19:36:44  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 19:36:38  0.00B 
/bin/sh -c #(nop) ENV PATH=/opt/conda/bin:$PATH
                        
# 2026-02-22 19:36:38  0.00B 
/bin/sh -c #(nop) ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
                        
# 2026-01-16 01:43:39  9.05KB 执行命令并创建新的镜像层
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c adduser --disabled-password --gecos 'dog' nonroot # buildkit
                        
# 2026-01-16 01:43:38  52.89MB 执行命令并创建新的镜像层
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 01:43:38  0.00B 设置环境变量 TZ
ENV TZ=Etc/UTC
                        
# 2026-01-16 01:43:38  0.00B 定义构建参数
ARG DEBIAN_FRONTEND=noninteractive
                        
# 2025-01-31 06:09:18  541.28MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     dpkgArch="$(dpkg --print-architecture)";     case "${dpkgArch##*-}" in         amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d' ;;         armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='3c4114923305f1cd3b96ce3454e9e549ad4aa7c07c03aec73d1a785e98388bed' ;;         arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2' ;;         i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='0a6bed6e9f21192a51f83977716466895706059afb880500ff1d0e751ada5237' ;;         ppc64el) rustArch='powerpc64le-unknown-linux-gnu'; rustupSha256='079430f58ad4da1d1f4f5f2f0bd321422373213246a93b3ddb53dad627f5aa38' ;;         s390x) rustArch='s390x-unknown-linux-gnu'; rustupSha256='e7f89da453c8ce5771c28279d1a01d5e83541d420695c74ec81a7ec5d287c51c' ;;         *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;;     esac;     url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init";     wget "$url";     echo "${rustupSha256} *rustup-init" | sha256sum -c -;     chmod +x rustup-init;     ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch};     rm rustup-init;     chmod -R a+w $RUSTUP_HOME $CARGO_HOME;     rustup --version;     cargo --version;     rustc --version; # buildkit
                        
# 2025-01-31 06:09:18  0.00B 设置环境变量 RUSTUP_HOME CARGO_HOME PATH RUST_VERSION
ENV RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUST_VERSION=1.84.1
                        
# 2025-01-31 06:09:18  0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust
                        
# 2024-01-09 09:14:25  587.58MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; 	apt-get update; 	apt-get install -y --no-install-recommends 		autoconf 		automake 		bzip2 		default-libmysqlclient-dev 		dpkg-dev 		file 		g++ 		gcc 		imagemagick 		libbz2-dev 		libc6-dev 		libcurl4-openssl-dev 		libdb-dev 		libevent-dev 		libffi-dev 		libgdbm-dev 		libglib2.0-dev 		libgmp-dev 		libjpeg-dev 		libkrb5-dev 		liblzma-dev 		libmagickcore-dev 		libmagickwand-dev 		libmaxminddb-dev 		libncurses5-dev 		libncursesw5-dev 		libpng-dev 		libpq-dev 		libreadline-dev 		libsqlite3-dev 		libssl-dev 		libtool 		libwebp-dev 		libxml2-dev 		libxslt-dev 		libyaml-dev 		make 		patch 		unzip 		xz-utils 		zlib1g-dev 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-01-09 09:14:25  177.14MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		git 		mercurial 		openssh-client 		subversion 				procps 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2023-05-11 07:29:59  48.46MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		curl 		gnupg 		netbase 		sq 		wget 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2023-05-11 07:29:59  116.51MB 
# debian.sh --arch 'amd64' out/ 'bookworm' '@1738540800'
                        
                    

镜像信息

{
    "Id": "sha256:e77cf06e6767f7bcc1c16c7895b3ee65097d78a840b00e0e7f217a9d73f5e99b",
    "RepoTags": [
        "swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429"
    ],
    "RepoDigests": [
        "swerebenchv2/rust-analyzer-rust-analyzer@sha256:26df9cd4656a9f0d3425632068c39ac7b8c0f448281df19315679d3c5960d586",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-analyzer-rust-analyzer@sha256:72208bd2c3659ac5846a8194bc55d03c9191b5bc982882f69c07f52919a5295b"
    ],
    "Parent": "",
    "Comment": "FROM docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429",
    "Created": "2026-04-21T20:16:10.897796456Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "f20970ef545c",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "RUSTUP_HOME=/usr/local/rustup",
            "CARGO_HOME=/usr/local/cargo",
            "RUST_VERSION=1.84.1",
            "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/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "Cmd": [
            "bash"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/rust-analyzer",
        "Entrypoint": null,
        "OnBuild": [],
        "Labels": {
            "io.buildah.version": "1.38.1",
            "org.opencontainers.image.source": "https://github.com/rust-lang/docker-rust"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 3112679846,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/3e46cccfd489f187a74853bf87a3d2f22d1c8322b71fc5779cab5d2bd9e4be6f/diff:/var/lib/docker/overlay2/4a5bc7e96fd357066a571aef9050a7c5393c74d95831e05f3832cb405afdb8b8/diff:/var/lib/docker/overlay2/3780d1b02822bf8f545c93ab657cbd89856d70974d860fa59bc6d66a3cf1e573/diff:/var/lib/docker/overlay2/9e9f080b456fc7640dbacfd703d5533895b2979c3c5e9ecb08b0be72f8725fd8/diff:/var/lib/docker/overlay2/b0902863b01db8c82af415365e9ba4612bcb35a3ae705d13d95c913eba404274/diff:/var/lib/docker/overlay2/a92b7f0fad0b42901ac9773d15203df0a29c297ee32b33f83a64ee2a471ad5b6/diff:/var/lib/docker/overlay2/8b4ff75619692d4912bdbb6325317a65cc0a9da488deb205ff7854803b410a28/diff:/var/lib/docker/overlay2/a762b8d83f74abe273a9423885325f34831faac399475eae8c0b910eb14e0c7b/diff:/var/lib/docker/overlay2/58074127e6aaf9417c0b651f1c7da5a26c92831bdafbbccb26a2f5a002661d40/diff",
            "MergedDir": "/var/lib/docker/overlay2/b711ebc174705257c56d4510a82efdea3372f3837cc075cc7c972f9980bf8196/merged",
            "UpperDir": "/var/lib/docker/overlay2/b711ebc174705257c56d4510a82efdea3372f3837cc075cc7c972f9980bf8196/diff",
            "WorkDir": "/var/lib/docker/overlay2/b711ebc174705257c56d4510a82efdea3372f3837cc075cc7c972f9980bf8196/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:91b542912d126a7516f2371a25a8b1f865f327cd8bd079f23d057d9945f7d02d",
            "sha256:c0f51bbdc37dd77b0ef5cc803b088c7da8bc0005b7e2ed9d33b4e729b84a6721",
            "sha256:41d4dc7516bb03784c161047722036bea2c230fb7adca45cc999637c7a9f7ca8",
            "sha256:dafb8aed9f7f183b50467a43cb5477c844ceed3eb4a0be92e80f358a71ba543b",
            "sha256:c2f8ee339df60179ef9b494d1f5b869163d21c9647c60d2deddc5ce4d709bc5e",
            "sha256:827546625aadeb2841e737b4f34447ed40c27fbc13762cfcb7edbdb6ee5d0c0f",
            "sha256:98cfae322b0838edcdc81c2cdca5bdb860073e62c5f8453b58a111649c5153d1",
            "sha256:fe3dfa0a643711c5fcde4bd8080bea42a48a00d63b69c5cff6b5a07f5b268dd4",
            "sha256:dec852b7562a14ab304ab573a8bbf4cbfdc3c9a11cb2cf87c76eb43ac80a5805",
            "sha256:a9e49f50bd9569d04222196d053806ec43eee2c15a8d0e9ba723db240f2f58cd"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-07-07T02:40:16.169602099+08:00"
    }
}

更多版本

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8858-ef6df1d

linux/amd64 docker.io3.12GB2026-07-07 01:38
9

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:9105-dbdfeee

linux/amd64 docker.io3.12GB2026-07-07 02:24
10

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:9024-d0a4ba2

linux/amd64 docker.io3.12GB2026-07-07 02:26
7

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8307-b580429

linux/amd64 docker.io3.11GB2026-07-07 02:41
9

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:11595-9d473a0

linux/amd64 docker.io3.15GB2026-07-07 02:59
9

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8848-87ef340

linux/amd64 docker.io3.12GB2026-07-07 04:50
7

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8660-6175353

linux/amd64 docker.io3.11GB2026-07-07 04:52
6

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:9114-5be653d

linux/amd64 docker.io3.12GB2026-07-07 06:17
7

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:9050-3fa3343

linux/amd64 docker.io3.12GB2026-07-07 06:19
5

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8991-35db5e9

linux/amd64 docker.io3.12GB2026-07-07 06:29
5

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8814-312f1fe

linux/amd64 docker.io3.11GB2026-07-07 06:31
6

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8687-dce0d71

linux/amd64 docker.io3.11GB2026-07-07 06:33
6

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:8457-0fac165

linux/amd64 docker.io3.11GB2026-07-07 06:36
6

docker.io/swerebenchv2/rust-analyzer-rust-analyzer:5324-2653440

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