mcr.microsoft.com/devcontainers/base:ubuntu-22.04 linux/amd64

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

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

源镜像 mcr.microsoft.com/devcontainers/base:ubuntu-22.04
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:ubuntu-22.04
镜像ID sha256:04996d625578186e972c7e0e7e355d82c1e92f158fb0820ff04bcac68dda5d20
镜像TAG ubuntu-22.04
大小 671.80MB
镜像源 mcr.microsoft.com
CMD /bin/bash
启动入口
工作目录
OS/平台 linux/amd64
浏览量 15 次
贡献者
镜像创建 2025-10-16T10:42:14.742190702Z
同步时间 2026-03-20 14:56
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
镜像标签
common: dev.containers.features base-ubuntu: dev.containers.id v0.4.19: dev.containers.release https://github.com/devcontainers/images: dev.containers.source Thu, 16 Oct 2025 10:39:05 GMT: dev.containers.timestamp jammy: 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 22.04: org.opencontainers.image.version 2.0.5: version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2025-10-16 18:42:14  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-10-16 18:42:14  0.00B 指定运行容器时使用的用户
USER root
                        
# 2025-10-16 18:42:14  0.00B 定义构建参数
ARG _DEV_CONTAINERS_IMAGE_USER=root
                        
# 2025-10-16 18:42:14  366.53MB 执行命令并创建新的镜像层
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-10-16 18:39:45  210.27MB 执行命令并创建新的镜像层
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-10-16 18:39:24  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-10-16 18:39:24  41.00B 复制新文件或目录到容器中
COPY /tmp/build-features/ /tmp/dev-container-features # buildkit
                        
# 2025-10-16 18:39:24  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p /tmp/dev-container-features # buildkit
                        
# 2025-10-16 18:39:24  0.00B 指定运行容器时使用的用户
USER root
                        
# 2025-10-16 18:39:24  0.00B 添加元数据标签
LABEL dev.containers.timestamp=Thu, 16 Oct 2025 10:39:05 GMT
                        
# 2025-10-16 18:39:24  0.00B 添加元数据标签
LABEL dev.containers.source=https://github.com/devcontainers/images
                        
# 2025-10-16 18:39:24  0.00B 添加元数据标签
LABEL dev.containers.release=v0.4.19
                        
# 2025-10-16 18:39:24  0.00B 添加元数据标签
LABEL dev.containers.variant=jammy
                        
# 2025-10-16 18:39:24  0.00B 添加元数据标签
LABEL dev.containers.id=base-ubuntu
                        
# 2025-10-16 18:39:24  0.00B 添加元数据标签
LABEL version=2.0.5
                        
# 2025-10-16 18:39:24  295.00B 复制新文件或目录到容器中
COPY meta.env /usr/local/etc/vscode-dev-containers/ # buildkit
                        
# 2025-10-16 18:39:24  0.00B 执行命令并创建新的镜像层
RUN |1 VARIANT=jammy /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-10-16 18:39:24  0.00B 定义构建参数
ARG VARIANT
                        
# 2025-10-16 18:39:24  0.00B 添加元数据标签
LABEL dev.containers.features=common
                        
# 2023-04-29 05:58:08  17.13MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		curl 		gnupg 		netbase 		wget 		tzdata 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2023-04-29 05:58:08  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2023-04-29 05:58:08  77.87MB 
/bin/sh -c #(nop) ADD file:32d41b6329e8f89fa4ac92ef97c04b7cfd5e90fb74e1509c3e27d7c91195b7c7 in / 
                        
# 2023-04-29 05:58:08  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.version=22.04
                        
# 2023-04-29 05:58:08  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu
                        
# 2023-04-29 05:58:08  0.00B 
/bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH
                        
# 2023-04-29 05:58:08  0.00B 
/bin/sh -c #(nop)  ARG RELEASE
                        
                    

镜像信息

{
    "Id": "sha256:04996d625578186e972c7e0e7e355d82c1e92f158fb0820ff04bcac68dda5d20",
    "RepoTags": [
        "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base:ubuntu-22.04"
    ],
    "RepoDigests": [
        "mcr.microsoft.com/devcontainers/base@sha256:81380e4c9c14e8a629ff39029639e4b7893e67400246fa7782a0fe7dc193a02a",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/mcr.microsoft.com/devcontainers/base@sha256:dbe1ccffacca6d86e89370e18229798cd0e5c950fca10530b290367fe35004ca"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-10-16T10:42:14.742190702Z",
    "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.19",
            "dev.containers.source": "https://github.com/devcontainers/images",
            "dev.containers.timestamp": "Thu, 16 Oct 2025 10:39:05 GMT",
            "dev.containers.variant": "jammy",
            "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": "22.04",
            "version": "2.0.5"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 671804112,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/91ba973e4051e758d309b5c6cb7a1a4a4e9dd20e804624878fe04c52c6a1a08d/diff:/var/lib/docker/overlay2/221a1e77eb9669a3f11341719e4e040b2e49718d1f9512c4c3a7f4eef6314bcc/diff:/var/lib/docker/overlay2/ad8e7ac8d84a4231258e360b30d6f1d54b2d1fd82b524a533bcf61e2bbb9689f/diff:/var/lib/docker/overlay2/63917d8123398b141fd5d242bc6581355f2e10a21fcb11d479f542fd2d1c9494/diff:/var/lib/docker/overlay2/bdff284d372507c3d43894c9083962c5065ecbcb32d5bc39371e2a0820b50cde/diff:/var/lib/docker/overlay2/7236b2a5233bf58d8da323258f0c572fba3807c632c88bff1c9f5f667166adb3/diff:/var/lib/docker/overlay2/43366ff208822f51205ca312644ffdbc646227dcf50f19cd93f62ff87ad98053/diff:/var/lib/docker/overlay2/99a8a7af45ffa1dc430375fde8c3084ee85be5839f687d98d2857fb82cd37c67/diff",
            "MergedDir": "/var/lib/docker/overlay2/75ca7db99d5d77868d98264509cb7e8a8fb97a4e0060b72c57fb1da13c6be4e0/merged",
            "UpperDir": "/var/lib/docker/overlay2/75ca7db99d5d77868d98264509cb7e8a8fb97a4e0060b72c57fb1da13c6be4e0/diff",
            "WorkDir": "/var/lib/docker/overlay2/75ca7db99d5d77868d98264509cb7e8a8fb97a4e0060b72c57fb1da13c6be4e0/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:767e56ba346ae714b6e6b816baa839051145ed78cfa0e4524a86cc287b0c4b00",
            "sha256:163d8f12e89c0bde79692cdb9dd11880f70266dcd87ff8b4054b4c70e8148c56",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:0dd604a7ec1d9a0a616ce957848073f056b10e9412e39b8ec0442a1eaa944fae",
            "sha256:ca19c6e955c33f954c3694b062ddfb7dba9334350b5ae18ccec65ac34cc66246",
            "sha256:dab3c893c35b6fd1b95d3502d3687aebceaf04aecd7926e448e837705596b789",
            "sha256:b6074412910d68548b26053717711469de7945f376d98fe95ef6cdd0a9fa84ec",
            "sha256:96a875aaac269f38c4f4484df323d8640a8cce713c6c0db22200365e731ce48b",
            "sha256:b9cbfceddce22dffe5830c38e722adbdc8119de9a57e472a6f0c07bc089fdd00"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-03-20T14:55:58.968502522+08:00"
    }
}

更多版本

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

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

mcr.microsoft.com/devcontainers/base:jammy

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

mcr.microsoft.com/devcontainers/base:trixie

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

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

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

mcr.microsoft.com/devcontainers/base:noble

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

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

linux/amd64 mcr.microsoft.com671.80MB2026-03-20 14:56
14