logo
docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f
linux/amd64 docker.io

该Docker镜像包含Rust语言的语言服务器rust-analyzer,可为Rust项目提供代码分析、智能补全、代码跳转、重构等开发辅助功能,适用于集成到开发环境或CI/CD流程中,帮助提升Rust代码编写效率。

9
浏览次数
4.27GB
镜像大小
源镜像
docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f
镜像ID
sha256:f035dabf3bccdbe2a22801d4d2c2f3a44f73588837c183bf5b47c08a88952038
镜像 TAG
15970-237712f
镜像大小
4.27GB
平台架构
linux/amd64
镜像源
docker.io
CMD
bash
启动入口
工作目录
/rust-analyzer
OS/平台
linux/amd64
镜像创建
2026-04-22T08:23:21.00416905Z
同步时间
2026-07-07 02:12
浏览量
9 次
贡献者
⚙️ 环境变量 8
KeyValue
RUSTUP_HOME=/usr/local/rustup 0
CARGO_HOME=/usr/local/cargo 1
RUST_VERSION=1.77.2 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.5 Trivy 2026-07-07 02:14 查看完整报告
1536
低危 LOW
4997
中危 MEDIUM
2001
高危 HIGH
238
严重 CRITICAL
受影响目标 (5)
docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f (debian 12.5) 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-lang-rust-analyzer:15970-237712f
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f  docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f  docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2026-04-22 16:23:23  0.00B 
/bin/sh
                        
# 2026-02-22 18:20:44  1.27GB 
/bin/sh -c #(nop) COPY file:0f9572b69cf152675ea20092a9bcade922e48f490b8c272115bb77a78d25eed7 in /swebench_matterhorn/swebench_instance.json 
                        
# 2026-02-22 18:20:36  0.00B 
/bin/sh -c #(nop) WORKDIR /rust-analyzer
                        
# 2026-02-22 18:20:36  0.00B 
/bin/sh -c <<-DOCKER_RUN_EOF
set -eux;
    git clone -o origin https://github.com/rust-lang/rust-analyzer /rust-analyzer;
    chmod -R 777 /rust-analyzer;
    cd /rust-analyzer;
    git reset --hard 237712fa314237e428e7ef2ab83b979f928a43a1;
    ( curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ) || true;
    ( export PATH="/root/.cargo/bin:$PATH" ) || true;
    ( rustup install 1.70 ) || true;
    ( rustup default 1.70 ) || true;
    # Keep only the checked-out commit and remove refs/history that can point
    # to newer commits.
    git checkout --detach 237712fa314237e428e7ef2ab83b979f928a43a1;
    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:20:14  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:20:02  1.53GB 
/bin/sh -c #(nop) ENV NO_CONDA=1
                        
# 2026-02-22 18:19:55  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:48  0.00B 
/bin/sh -c #(nop) COPY file:61604c43c292b48546055579c93885a922428ac04b5a3f2bd7c87a6a8208dbd4 in / 
                        
# 2026-02-22 18:19:47  0.00B 
/bin/sh -c #(nop) COPY file:38d2cec6c3688d3db2fdf6a899d279ccf0f0bf78f9acc300722c98b6d67c4b26 in / 
                        
# 2026-02-22 18:19:47  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:40  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:35  0.00B 
/bin/sh -c #(nop) ENV PATH=/opt/conda/bin:$PATH
                        
# 2026-02-22 18:19:35  0.00B 
/bin/sh -c #(nop) ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
                        
# 2026-01-16 00:59:47  9.05KB 执行命令并创建新的镜像层
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c adduser --disabled-password --gecos 'dog' nonroot # buildkit
                        
# 2026-01-16 00:59:47  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 00:59:47  0.00B 设置环境变量 TZ
ENV TZ=Etc/UTC
                        
# 2026-01-16 00:59:47  0.00B 定义构建参数
ARG DEBIAN_FRONTEND=noninteractive
                        
# 2024-04-15 13:37:46  485.77MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     dpkgArch="$(dpkg --print-architecture)";     case "${dpkgArch##*-}" in         amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='a3d541a5484c8fa2f1c21478a6f6c505a778d473c21d60a18a4df5185d320ef8' ;;         armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='7cff34808434a28d5a697593cd7a46cefdf59c4670021debccd4c86afde0ff76' ;;         arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='76cd420cb8a82e540025c5f97bda3c65ceb0b0661d5843e6ef177479813b0367' ;;         i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='cacdd10eb5ec58498cd95dbb7191fdab5fa4343e05daaf0fb7cdcae63be0a272' ;;         ppc64el) rustArch='powerpc64le-unknown-linux-gnu'; rustupSha256='b152711fb15fd629f0d4c2731cbf9167e6352da0ffcb2210447d80c010180f96' ;;         s390x) rustArch='s390x-unknown-linux-gnu'; rustupSha256='4ff9e7963ed0457e64cbb29d2b5a37496d1fa303f9300adc5251ee3c16bd3b30' ;;         *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;;     esac;     url="https://static.rust-lang.org/rustup/archive/1.27.0/${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
                        
# 2024-04-15 13:37:46  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.77.2
                        
# 2024-04-15 13:37:46  0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust
                        
# 2024-04-15 13:37:46  587.30MB 
/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/*
                        
# 2024-04-15 13:37:46  176.68MB 
/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/*
                        
# 2024-04-15 13:37:46  48.44MB 
/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/*
                        
# 2024-04-15 13:37:46  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2024-04-15 13:37:46  116.56MB 
/bin/sh -c #(nop) ADD file:2cc4cba2834c189d0dc41b5d79e1236770862c38452517fcbbb28015b88ab5cf in / 
                        
                    

镜像信息

{
    "Id": "sha256:f035dabf3bccdbe2a22801d4d2c2f3a44f73588837c183bf5b47c08a88952038",
    "RepoTags": [
        "swerebenchv2/rust-lang-rust-analyzer:15970-237712f",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f"
    ],
    "RepoDigests": [
        "swerebenchv2/rust-lang-rust-analyzer@sha256:5f4b1935f2a674186d3f496f53573bd7ba60b37e7649795b7a05650057f0b4cc",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer@sha256:9a708703964fecad01204607be515726b722efc248e1935e0452fc2595ee4f41"
    ],
    "Parent": "",
    "Comment": "FROM docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f",
    "Created": "2026-04-22T08:23:21.00416905Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "101ad04d32a1",
        "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.77.2",
            "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": 4267492371,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/56befef4a018fea0b32fd38224777a759259c98b32532b28fac861826c362b52/diff:/var/lib/docker/overlay2/6081d54f6bb7a18890b8461c7ac05848b14eb6e2e379128ff7a9f9674071abce/diff:/var/lib/docker/overlay2/2ced8513f6e69488ca0ff0228e27d4ce5e49fdc266885fb21fb262137ff32476/diff:/var/lib/docker/overlay2/1b99c0dc801f7a9708eac0369361a84cbbca8c4d785cf6c325f47adcc8939ad4/diff:/var/lib/docker/overlay2/47f9478775f8042d7649f3baa330d3f9563d335a82ae317829c53d76021b2087/diff:/var/lib/docker/overlay2/b97ce45d3248ddb07a5291cae9b56a50b1a8bcc0fc6155d482a44fa2b19f3dfe/diff:/var/lib/docker/overlay2/1338045e40e03ca4f05f82736d2541b6d783fe46108d22b1172bc3326c25864b/diff:/var/lib/docker/overlay2/e17d8f8c4900cacf9f046095ce1e1577129ef2ed9907ea1194ad04cc85b1fdfd/diff:/var/lib/docker/overlay2/65adf25f1a94cd9075fe6d30b6e8055bd23d21d3a1a2de90ba5ddd692b6f1210/diff",
            "MergedDir": "/var/lib/docker/overlay2/2d7b82393717c6a3db4c79b014e2a40ddc1c7d8cee3fce9071eb6ab781c5f989/merged",
            "UpperDir": "/var/lib/docker/overlay2/2d7b82393717c6a3db4c79b014e2a40ddc1c7d8cee3fce9071eb6ab781c5f989/diff",
            "WorkDir": "/var/lib/docker/overlay2/2d7b82393717c6a3db4c79b014e2a40ddc1c7d8cee3fce9071eb6ab781c5f989/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:072686bcd3db19834cd1e0b1e18acf50b7876043f9c38d5308e5e579cbefa6be",
            "sha256:7e43f593c9002558525c0a581f620ddc8ee059f2f5c3105ffcb4162f45a2369b",
            "sha256:c5d13b2949a2f3af0e21ac0657b9b7cdaf002ec344253e592a23d1ed3e0dddb9",
            "sha256:83db175c22e2549be02c95416365378abe2dd79d54b7d74918be21bda172c297",
            "sha256:138fbdfe96ff65a3ae5192764325716a0349db1dbbb33a1b2e13effbde0cb90c",
            "sha256:9916be5ca01903ac466187786ee1c517032478e09320edc840550e39720fb0bd",
            "sha256:167562c735bc375dd14da54e42c11189f9d92e4183e29dddf3101953a42576b7",
            "sha256:8f634235f7cb0a95c083ecc3a92cc0ddca141973e3a17f01e1a3096043eb6a6c",
            "sha256:bc9ffb6e61378a90a7ea2105ffaa0ae82a9848622c26344aebd09957cd744d0c",
            "sha256:ff6ebf494adb9690309dbdf06206214764652cd8e5e002f684d43c6209fc8b2c"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-07-07T02:09:42.554835626+08:00"
    }
}

更多版本

docker.io/swerebenchv2/rust-lang-rust-analyzer:14890-21e5dc2

linux/amd64 docker.io7.66GB2026-07-07 01:35
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:14891-efd3094

linux/amd64 docker.io7.66GB2026-07-07 01:56
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:13854-74ae2dd

linux/amd64 docker.io4.17GB2026-07-07 01:58
6

docker.io/swerebenchv2/rust-lang-rust-analyzer:13730-f9bd487

linux/amd64 docker.io4.20GB2026-07-07 02:02
7

docker.io/swerebenchv2/rust-lang-rust-analyzer:13463-d3b7e94

linux/amd64 docker.io5.97GB2026-07-07 02:07
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:15970-237712f

linux/amd64 docker.io4.27GB2026-07-07 02:12
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:15405-70fa270

linux/amd64 docker.io6.12GB2026-07-07 02:20
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:14580-b218009

linux/amd64 docker.io5.37GB2026-07-07 02:21
9

docker.io/swerebenchv2/rust-lang-rust-analyzer:17985-914a1ca

linux/amd64 docker.io6.29GB2026-07-07 02:38
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:13750-a0296c2

linux/amd64 docker.io4.20GB2026-07-07 02:39
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:13303-97f8f4a

linux/amd64 docker.io4.25GB2026-07-07 02:45
7

docker.io/swerebenchv2/rust-lang-rust-analyzer:13147-f02cd0a

linux/amd64 docker.io4.17GB2026-07-07 02:57
7

docker.io/swerebenchv2/rust-lang-rust-analyzer:17882-36a071c

linux/amd64 docker.io4.26GB2026-07-07 03:04
7

docker.io/swerebenchv2/rust-lang-rust-analyzer:18390-f0f2605

linux/amd64 docker.io3.16GB2026-07-07 03:29
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:17916-e4edf6c

linux/amd64 docker.io4.26GB2026-07-07 03:54
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:17789-aa00ddc

linux/amd64 docker.io5.02GB2026-07-07 03:59
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:17505-4e836c6

linux/amd64 docker.io4.23GB2026-07-07 04:05
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:19137-f5e7172

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

docker.io/swerebenchv2/rust-lang-rust-analyzer:18172-b3a3bf7

linux/amd64 docker.io3.16GB2026-07-07 04:11
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:18075-e35227d

linux/amd64 docker.io3.16GB2026-07-07 04:14
10

docker.io/swerebenchv2/rust-lang-rust-analyzer:17893-64a1405

linux/amd64 docker.io4.27GB2026-07-07 04:18
7

docker.io/swerebenchv2/rust-lang-rust-analyzer:17832-34d9409

linux/amd64 docker.io3.19GB2026-07-07 04:22
8

docker.io/swerebenchv2/rust-lang-rust-analyzer:16967-899db83

linux/amd64 docker.io4.23GB2026-07-07 04:26
7

docker.io/swerebenchv2/rust-lang-rust-analyzer:17258-f6fc109

linux/amd64 docker.io4.26GB2026-07-07 05:06
7

docker.io/swerebenchv2/rust-lang-rust-analyzer:16813-e265e3d

linux/amd64 docker.io4.24GB2026-07-07 05:10
7

docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be

linux/amd64 docker.io3.16GB2026-07-07 06:00
6

docker.io/swerebenchv2/rust-lang-rust-analyzer:16385-1ab8c7f

linux/amd64 docker.io5.58GB2026-07-07 06:25
5

docker.io/swerebenchv2/rust-lang-rust-analyzer:19158-40e4f91

linux/amd64 docker.io3.20GB2026-07-07 06:38
5

docker.io/swerebenchv2/rust-lang-rust-analyzer:14851-e8ae2d3

linux/amd64 docker.io4.23GB2026-07-07 06:41
5

docker.io/swerebenchv2/rust-lang-rust-analyzer:18385-f9935be

linux/amd64 docker.io3.16GB2026-07-07 06:47
5

docker.io/swerebenchv2/rust-lang-rust-analyzer:17757-c8e41d9

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