docker.io/library/rust:1-slim linux/amd64

docker.io/library/rust:1-slim - 国内下载镜像源 浏览次数:17 安全受验证的发布者-Docker
```html

这是一个包含Rust编程语言编译器和标准库的Docker镜像。它提供了一个预配置的环境,方便开发者构建和运行Rust项目。 无需在本地系统上安装Rust,即可使用该镜像进行开发和测试。

```
源镜像 docker.io/library/rust:1-slim
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim
镜像ID sha256:8573a005bfcb44d5f462a33f6ad6e85d231f51e759b60c8061777422becfcb94
镜像TAG 1-slim
大小 807.08MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD bash
启动入口
工作目录
OS/平台 linux/amd64
浏览量 17 次
贡献者 11*******1@qq.com
镜像创建 2025-03-18T20:40:17Z
同步时间 2025-04-03 10:51
更新时间 2025-04-05 01:38
环境变量
PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo RUST_VERSION=1.85.1
镜像标签
https://github.com/rust-lang/docker-rust: org.opencontainers.image.source

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim  docker.io/library/rust:1-slim

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim  docker.io/library/rust:1-slim

Shell快速替换命令

sed -i 's#library/rust:1-slim#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim  docker.io/library/rust:1-slim'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim  docker.io/library/rust:1-slim'

镜像构建历史


# 2025-03-19 04:40:17  732.30MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     apt-get update;     apt-get install -y --no-install-recommends         ca-certificates         gcc         libc6-dev         wget         ;     dpkgArch="$(dpkg --print-architecture)";     case "${dpkgArch##*-}" in         amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='a3339fb004c3d0bb9862ba0bce001861fe5cbde9c10d16591eb3f39ee6cd3e7f' ;;         armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='62cfed758140f94a75074fb350e287dd26d1b6c9a4d6a18616757fb344720bcb' ;;         arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='c64b33db2c6b9385817ec0e49a84bcfe018ed6e328fe755c3c809580cc70ce7a' ;;         i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='fec8226fede82b4b886855e4f1b69cdd17a6f60afdddb17f9a814b743c2d5c47' ;;         ppc64el) rustArch='powerpc64le-unknown-linux-gnu'; rustupSha256='b1ef09a734ece551456635b25c91a97770392b74c7f793fbc58575ddf0442645' ;;         s390x) rustArch='s390x-unknown-linux-gnu'; rustupSha256='8e4e8d5ffd3e6996303faf45670009388f73a4796264230f04f5c29809620c20' ;;         *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;;     esac;     url="https://static.rust-lang.org/rustup/archive/1.28.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;     apt-get remove -y --auto-remove         wget         ;     rm -rf /var/lib/apt/lists/*; # buildkit
                        
# 2025-03-19 04:40:17  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.85.1
                        
# 2025-03-19 04:40:17  0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust
                        
# 2025-03-17 08:00:00  74.78MB 
# debian.sh --arch 'amd64' out/ 'bookworm' '@1742169600'
                        
                    

镜像信息

{
    "Id": "sha256:8573a005bfcb44d5f462a33f6ad6e85d231f51e759b60c8061777422becfcb94",
    "RepoTags": [
        "rust:1-slim",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust:1-slim"
    ],
    "RepoDigests": [
        "rust@sha256:9f841bbe9e7d8e37ceb96ed907265a3a0df7f44e3737d0b100e7907a679acb36",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/rust@sha256:a95ff6c0f613cb072ec196fe51792904a464c0360c350af029a5bb78d5e39400"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-03-18T20:40:17Z",
    "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/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "RUSTUP_HOME=/usr/local/rustup",
            "CARGO_HOME=/usr/local/cargo",
            "RUST_VERSION=1.85.1"
        ],
        "Cmd": [
            "bash"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.source": "https://github.com/rust-lang/docker-rust"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 807082123,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/7295d95395d04ab7dfa97ead24c0ca9b06125f4f3277903f0a1a9d60d3c5e7ca/diff",
            "MergedDir": "/var/lib/docker/overlay2/dc90e9898e2fe73c14c44e07ca61e48a509270756cf179f9ed132fd0b832617b/merged",
            "UpperDir": "/var/lib/docker/overlay2/dc90e9898e2fe73c14c44e07ca61e48a509270756cf179f9ed132fd0b832617b/diff",
            "WorkDir": "/var/lib/docker/overlay2/dc90e9898e2fe73c14c44e07ca61e48a509270756cf179f9ed132fd0b832617b/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:1287fbecdfcce6ee8cf2436e5b9e9d86a4648db2d91080377d499737f1b307f3",
            "sha256:bd8c225fb9eda4f9dbbd4265e3fb2913ac79cd33e8216406014ac6a263927665"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-04-03T10:50:32.752760499+08:00"
    }
}

更多版本

docker.io/library/rust:1-bullseye

linux/amd64 docker.io1.37GB2025-02-18 10:29
57

docker.io/library/rust:1-slim

linux/amd64 docker.io807.08MB2025-04-03 10:51
16