mcr.microsoft.com/devcontainers/base:noble linux/amd64

mcr.microsoft.com/devcontainers/base:noble - 国内下载镜像源 浏览次数:127

这是一个微软提供的基础Dev Container镜像。它提供了一个轻量级的基础环境,用于构建自定义的开发容器。 该镜像包含了一些常用的开发工具和库,方便开发者快速搭建开发环境。

源镜像 mcr.microsoft.com/devcontainers/base:noble
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble
镜像ID sha256:e725a13a6413d94b6682492761d26ced59503a895da74a5b25d20486656abc94
镜像TAG noble
大小 711.24MB
镜像源 mcr.microsoft.com
CMD /bin/bash
启动入口
工作目录
OS/平台 linux/amd64
浏览量 127 次
贡献者 ev**n@qq.com
镜像创建 2025-11-27T11:20:07.744664289Z
同步时间 2025-12-16 09:39
更新时间 2026-02-05 02:49
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
镜像标签
common: dev.containers.features base-ubuntu: dev.containers.id v0.4.21: dev.containers.release https://github.com/devcontainers/images: dev.containers.source Thu, 27 Nov 2025 11:16:43 GMT: dev.containers.timestamp noble: dev.containers.variant [ {"id":"ghcr.io/devcontainers/features/common-utils:2"}, {"id":"ghcr.io/devcontainers/features/git:1","customizations":{"vscode":{"settings":{"github.copilot.chat.codeGeneration.instructions":[{"text":"This dev container includes an up-to-date version of Git, built from source as needed, pre-installed and available on the `PATH`."}]}}}}, {"remoteUser":"vscode"} ]: devcontainer.metadata ubuntu: org.opencontainers.image.ref.name 24.04: org.opencontainers.image.version 2.1.2: version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble  mcr.microsoft.com/devcontainers/base:noble

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble  mcr.microsoft.com/devcontainers/base:noble

Shell快速替换命令

sed -i 's#mcr.microsoft.com/devcontainers/base:noble#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble  mcr.microsoft.com/devcontainers/base:noble'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble  mcr.microsoft.com/devcontainers/base:noble'

镜像构建历史


# 2025-11-27 19:20:07  0.00B 添加元数据标签
LABEL devcontainer.metadata=[ {"id":"ghcr.io/devcontainers/features/common-utils:2"}, {"id":"ghcr.io/devcontainers/features/git:1","customizations":{"vscode":{"settings":{"github.copilot.chat.codeGeneration.instructions":[{"text":"This dev container includes an up-to-date version of Git, built from source as needed, pre-installed and available on the `PATH`."}]}}}}, {"remoteUser":"vscode"} ]
                        
# 2025-11-27 19:20:07  0.00B 指定运行容器时使用的用户
USER root
                        
# 2025-11-27 19:20:07  0.00B 定义构建参数
ARG _DEV_CONTAINERS_IMAGE_USER=root
                        
# 2025-11-27 19:20:07  405.61MB 执行命令并创建新的镜像层
RUN /bin/sh -c cp -ar /tmp/build-features-src/git_1 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/git_1  && cd /tmp/dev-container-features/git_1  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/git_1 # buildkit
                        
# 2025-11-27 19:17:25  193.77MB 执行命令并创建新的镜像层
RUN /bin/sh -c cp -ar /tmp/build-features-src/common-utils_0 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/common-utils_0  && cd /tmp/dev-container-features/common-utils_0  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/common-utils_0 # buildkit
                        
# 2025-11-27 19:17:03  87.00B 执行命令并创建新的镜像层
RUN /bin/sh -c echo "_CONTAINER_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true) | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env && echo "_REMOTE_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'vscode' || grep -E '^vscode|^[^:]*:[^:]*:vscode:' /etc/passwd || true) | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env # buildkit
                        
# 2025-11-27 19:17:03  41.00B 复制新文件或目录到容器中
COPY /tmp/build-features/ /tmp/dev-container-features # buildkit
                        
# 2025-11-27 19:17:03  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p /tmp/dev-container-features # buildkit
                        
# 2025-11-27 19:17:03  0.00B 指定运行容器时使用的用户
USER root
                        
# 2025-11-27 19:17:03  0.00B 添加元数据标签
LABEL dev.containers.timestamp=Thu, 27 Nov 2025 11:16:43 GMT
                        
# 2025-11-27 19:17:03  0.00B 添加元数据标签
LABEL dev.containers.source=https://github.com/devcontainers/images
                        
# 2025-11-27 19:17:03  0.00B 添加元数据标签
LABEL dev.containers.release=v0.4.21
                        
# 2025-11-27 19:17:03  0.00B 添加元数据标签
LABEL dev.containers.variant=noble
                        
# 2025-11-27 19:17:03  0.00B 添加元数据标签
LABEL dev.containers.id=base-ubuntu
                        
# 2025-11-27 19:17:03  0.00B 添加元数据标签
LABEL version=2.1.2
                        
# 2025-11-27 19:17:03  295.00B 复制新文件或目录到容器中
COPY meta.env /usr/local/etc/vscode-dev-containers/ # buildkit
                        
# 2025-11-27 19:17:03  4.47KB 执行命令并创建新的镜像层
RUN |1 VARIANT=noble /bin/sh -c if [ "$VARIANT" = "noble" ]; then         if id "ubuntu" &>/dev/null; then             echo "Deleting user 'ubuntu'  for $VARIANT" && userdel -f -r ubuntu || echo "Failed to delete ubuntu user for $VARIANT";         else             echo "User 'ubuntu' does not exist for $VARIANT";         fi;     fi # buildkit
                        
# 2025-11-27 19:17:03  0.00B 定义构建参数
ARG VARIANT
                        
# 2025-11-27 19:17:03  0.00B 添加元数据标签
LABEL dev.containers.features=common
                        
# 2025-11-14 07:09:11  33.73MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		curl 		gnupg 		netbase 		sq 		wget 		tzdata 	; 	apt-get dist-clean # buildkit
                        
# 2025-10-17 03:23:03  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2025-10-17 03:23:03  78.12MB 
/bin/sh -c #(nop) ADD file:ddf1aa62235de6657123492b19d27d937c25668011b5ebf923a3f019200f8540 in / 
                        
# 2025-10-17 03:23:01  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.version=24.04
                        
# 2025-10-17 03:23:01  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu
                        
# 2025-10-17 03:23:01  0.00B 
/bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH
                        
# 2025-10-17 03:23:01  0.00B 
/bin/sh -c #(nop)  ARG RELEASE
                        
                    

镜像信息

{
    "Id": "sha256:e725a13a6413d94b6682492761d26ced59503a895da74a5b25d20486656abc94",
    "RepoTags": [
        "mcr.microsoft.com/devcontainers/base:noble",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:noble"
    ],
    "RepoDigests": [
        "mcr.microsoft.com/devcontainers/base@sha256:8d68bbf458958747a7f41756f60de95d5b404f374f05cd42969957653fad0cfe",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base@sha256:dae5709b19a7b8c4cce42f2b5c0d38cbd392c7de92592329afd746d5c570a477"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-11-27T11:20:07.744664289Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "root",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "Cmd": [
            "/bin/bash"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": {
            "dev.containers.features": "common",
            "dev.containers.id": "base-ubuntu",
            "dev.containers.release": "v0.4.21",
            "dev.containers.source": "https://github.com/devcontainers/images",
            "dev.containers.timestamp": "Thu, 27 Nov 2025 11:16:43 GMT",
            "dev.containers.variant": "noble",
            "devcontainer.metadata": "[ {\"id\":\"ghcr.io/devcontainers/features/common-utils:2\"}, {\"id\":\"ghcr.io/devcontainers/features/git:1\",\"customizations\":{\"vscode\":{\"settings\":{\"github.copilot.chat.codeGeneration.instructions\":[{\"text\":\"This dev container includes an up-to-date version of Git, built from source as needed, pre-installed and available on the `PATH`.\"}]}}}}, {\"remoteUser\":\"vscode\"} ]",
            "org.opencontainers.image.ref.name": "ubuntu",
            "org.opencontainers.image.version": "24.04",
            "version": "2.1.2"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 711238173,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/27c0d95cb9e7992f52248cafe5096efbc6f538178b608053fb8cc7cd07c0cd14/diff:/var/lib/docker/overlay2/e0c14af6fc81b89f2562a258d3668b313206e536961280713eab5aa6a77ad3be/diff:/var/lib/docker/overlay2/99734f4fd2dd2155da9a0402b1322b994de1f30f5778ddde44b610db8f94b2fd/diff:/var/lib/docker/overlay2/55c6e034025dda8e3c96bbccced0981bc7cecb77f94138a49a205240a195e9a9/diff:/var/lib/docker/overlay2/e6209ef1b20a31357ca0992f04e1bf118cf2094f7de70da8c53f55a8039f0526/diff:/var/lib/docker/overlay2/3463703fbcf333fe2e6061ca27f00a0b1d82ad5c13db0805110fee5b38f4b983/diff:/var/lib/docker/overlay2/3cd1812c635e373e4cf799ffd7a62260d2c5f7ef7a7729fcb541654fc18a72fb/diff:/var/lib/docker/overlay2/eb70712178461cb65c5a956187c966c31d60ac41eacf62af98ead2c9415d1d0a/diff",
            "MergedDir": "/var/lib/docker/overlay2/17cc61a65fd563dc8c196818dc3b9fb300f1f3042b6391686e11f0b2951ad62a/merged",
            "UpperDir": "/var/lib/docker/overlay2/17cc61a65fd563dc8c196818dc3b9fb300f1f3042b6391686e11f0b2951ad62a/diff",
            "WorkDir": "/var/lib/docker/overlay2/17cc61a65fd563dc8c196818dc3b9fb300f1f3042b6391686e11f0b2951ad62a/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:e8bce0aabd687e9ee90e0bada33884f40b277196f72aac9934357472863a80ae",
            "sha256:43d3ab33f891802d597e3aab8e62d6154468c370529024f93c285d79cc6dc6b5",
            "sha256:71bc4765307c7ed12f4b7c4e31eabc831b7a18f60a38d8b83681a315ef895ccf",
            "sha256:92446925cfab8a67bca705b33e12cc5069565c137a3943e9849d65d219cb6c73",
            "sha256:c2e8a6c690b66b2163c64d8f47557545eaab919d253c994d3ec58598fbd2912b",
            "sha256:1d292e42d5e65fd5883c47a7f3b021020327675c968c4f31c53b1898e9dbe0cf",
            "sha256:86bc2d22e18649f158b154fee5916cf716e5db2835e3eb888f788f9d72344bce",
            "sha256:2ac4d0136946e4f42695795a0588ff1fc22f74a725df0f08693b8f929afff143",
            "sha256:df061bf870bbea30066b2e54893eb378b137cd48c44d654eb8f28eeb4e916078"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-12-16T09:39:19.03581828+08:00"
    }
}

更多版本

mcr.microsoft.com/devcontainers/base:ubuntu-24.04

linux/amd64 mcr.microsoft.com718.97MB2025-07-11 16:55
1008

mcr.microsoft.com/devcontainers/base:jammy

linux/amd64 mcr.microsoft.com670.61MB2025-09-04 11:04
251

mcr.microsoft.com/devcontainers/base:trixie

linux/amd64 mcr.microsoft.com918.88MB2025-09-30 16:53
278

mcr.microsoft.com/devcontainers/base:0-alpine-3.20

linux/amd64 mcr.microsoft.com666.73MB2025-10-13 09:44
251

mcr.microsoft.com/devcontainers/base:noble

linux/amd64 mcr.microsoft.com711.24MB2025-12-16 09:39
126