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

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

11
浏览次数
3.16GB
镜像大小
源镜像
docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be
镜像ID
sha256:b0907109cc9cfa22f785d271b78bc65845644aae5c0d7c0dcf2ebb7f43da7868
镜像 TAG
18382-f9935be
镜像大小
3.16GB
平台架构
linux/amd64
镜像源
docker.io
CMD
bash
启动入口
工作目录
/rust-analyzer
OS/平台
linux/amd64
镜像创建
2026-04-21T19:49:41.462689663Z
同步时间
2026-07-07 06:00
浏览量
11 次
贡献者
⚙️ 环境变量 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 06:02 查看完整报告
1446
低危 LOW
3944
中危 MEDIUM
1539
高危 HIGH
222
严重 CRITICAL
受影响目标 (5)
docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be (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-lang-rust-analyzer:18382-f9935be
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be  docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be

Containerd拉取命令

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

Shell快速替换命令

sed -i 's#swerebenchv2/rust-lang-rust-analyzer:18382-f9935be#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be#' 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:18382-f9935be && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be  docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be'

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:18382-f9935be && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be  docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be'

镜像构建历史


# 2026-04-22 03:49:43  0.00B 
/bin/sh
                        
# 2026-02-22 17:19:28  112.61MB 
/bin/sh -c #(nop) COPY file:e5afbb2765157d9bf24b131450c037e611ee8d3cd20eaffe0a64091ee64f012e in /swebench_matterhorn/swebench_instance.json 
                        
# 2026-02-22 17:19:26  0.00B 
/bin/sh -c #(nop) WORKDIR /rust-analyzer
                        
# 2026-02-22 17:19:26  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 f9935be0132d461396ee4e82f7be446aa9aa112b;
    ( 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 f9935be0132d461396ee4e82f7be446aa9aa112b;
    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 17:19: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 17:19:02  1.53GB 
/bin/sh -c #(nop) ENV NO_CONDA=1
                        
# 2026-02-22 17:18: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 17:18:48  0.00B 
/bin/sh -c #(nop) COPY file:61604c43c292b48546055579c93885a922428ac04b5a3f2bd7c87a6a8208dbd4 in / 
                        
# 2026-02-22 17:18:47  0.00B 
/bin/sh -c #(nop) COPY file:38d2cec6c3688d3db2fdf6a899d279ccf0f0bf78f9acc300722c98b6d67c4b26 in / 
                        
# 2026-02-22 17:18: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 17:18:41  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 17:18:35  0.00B 
/bin/sh -c #(nop) ENV PATH=/opt/conda/bin:$PATH
                        
# 2026-02-22 17:18:35  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:b0907109cc9cfa22f785d271b78bc65845644aae5c0d7c0dcf2ebb7f43da7868",
    "RepoTags": [
        "swerebenchv2/rust-lang-rust-analyzer:18382-f9935be",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be"
    ],
    "RepoDigests": [
        "swerebenchv2/rust-lang-rust-analyzer@sha256:63d4f0c42d0dd8936a29536f2f90ee2116d5b1bcb1eaeb6f05dad7dd759ecaad",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/swerebenchv2/rust-lang-rust-analyzer@sha256:5e248d8e85080b35e5c8d1228d616b44b54df9deb1b596350200c2256c33cc27"
    ],
    "Parent": "",
    "Comment": "FROM docker.io/swerebenchv2/rust-lang-rust-analyzer:18382-f9935be",
    "Created": "2026-04-21T19:49:41.462689663Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "0cbc6f17b185",
        "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": 3162453895,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/fd5a0736c45264e5b14df1a21baa4dbbca1b143d6ab38b78a496528533a5a948/diff:/var/lib/docker/overlay2/c2d78a4b269b3ea60738b4cad3a749fa3c0ed45fdb4da69a1c9071c4b59aa32a/diff:/var/lib/docker/overlay2/c4e5a1dff2128028833bcedc7e54501946750e11805604d6d2ebfd2c8a35146c/diff:/var/lib/docker/overlay2/1f3bbd3711ebe75f83c04978eb3d7df540177d3742c37dc6f955f5fe1a2183ca/diff:/var/lib/docker/overlay2/5729ec2a9fcd38f937ffaabd3641644e326ae515f3a66b91e71ff4942c244db3/diff:/var/lib/docker/overlay2/a14aa53619328415cdeeb7ce540ae02d207688f3e6fc4ed08b620e15525352e0/diff:/var/lib/docker/overlay2/44076bf3ad8a78117e90a6888ae8e0e94af378f2000fe162820ea743865d514a/diff:/var/lib/docker/overlay2/44186ea857fab8703d23b600d35d5bf7bf0411ca2c71b180828b1dd22f88bddd/diff:/var/lib/docker/overlay2/8f80e76e623e3f269b3bd6f6ff7423e65e3e6575c39d6e181b4857876193248b/diff",
            "MergedDir": "/var/lib/docker/overlay2/a731ed76840f0256e7c7d06e8494e05301951d8e0dd6b65b8190d615c30f56ae/merged",
            "UpperDir": "/var/lib/docker/overlay2/a731ed76840f0256e7c7d06e8494e05301951d8e0dd6b65b8190d615c30f56ae/diff",
            "WorkDir": "/var/lib/docker/overlay2/a731ed76840f0256e7c7d06e8494e05301951d8e0dd6b65b8190d615c30f56ae/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:91b542912d126a7516f2371a25a8b1f865f327cd8bd079f23d057d9945f7d02d",
            "sha256:c0f51bbdc37dd77b0ef5cc803b088c7da8bc0005b7e2ed9d33b4e729b84a6721",
            "sha256:41d4dc7516bb03784c161047722036bea2c230fb7adca45cc999637c7a9f7ca8",
            "sha256:dafb8aed9f7f183b50467a43cb5477c844ceed3eb4a0be92e80f358a71ba543b",
            "sha256:c2f8ee339df60179ef9b494d1f5b869163d21c9647c60d2deddc5ce4d709bc5e",
            "sha256:827546625aadeb2841e737b4f34447ed40c27fbc13762cfcb7edbdb6ee5d0c0f",
            "sha256:98cfae322b0838edcdc81c2cdca5bdb860073e62c5f8453b58a111649c5153d1",
            "sha256:08c937465241065f37956c97508b4319c02310fc817c7d35a5c5321f27001a66",
            "sha256:b21a3f8b9be0512d38d97100589d8e6ff912f4b7d1fa505d93fe392ad8976a4a",
            "sha256:c03c24e832108b06abc515f689563d3094074910d153fbaacfcd94dbcb2ce334"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-07-07T05:59:22.215511631+08:00"
    }
}

更多版本

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

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

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

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

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

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

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
9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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