docker.io/mcr.microsoft.com/dotnet/sdk:9.0 linux/amd64

docker.io/mcr.microsoft.com/dotnet/sdk:9.0 - 国内下载镜像源 浏览次数:17
源镜像 docker.io/mcr.microsoft.com/dotnet/sdk:9.0
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0
镜像ID sha256:3cb0d12d309310b704601a48fdfcb3fbcc0a882c1957b4e1bb82b22d6ace979b
镜像TAG 9.0
大小 828.93MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD bash
启动入口
工作目录
OS/平台 linux/amd64
浏览量 17 次
贡献者
镜像创建 2025-01-14T19:01:51.820519925Z
同步时间 2025-01-16 16:07
更新时间 2025-01-18 09:37
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true DOTNET_VERSION=9.0.1 ASPNET_VERSION=9.0.1 DOTNET_GENERATE_ASPNET_CERTIFICATE=false DOTNET_NOLOGO=true DOTNET_SDK_VERSION=9.0.102 DOTNET_USE_POLLING_FILE_WATCHER=true NUGET_XMLDOC_MODE=skip POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetSDK-Debian-12

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0  docker.io/mcr.microsoft.com/dotnet/sdk:9.0

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0  docker.io/mcr.microsoft.com/dotnet/sdk:9.0

Shell快速替换命令

sed -i 's#mcr.microsoft.com/dotnet/sdk:9.0#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0  docker.io/mcr.microsoft.com/dotnet/sdk:9.0'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0  docker.io/mcr.microsoft.com/dotnet/sdk:9.0'

镜像构建历史


# 2025-01-15 03:01:51  50.38MB 执行命令并创建新的镜像层
RUN /bin/sh -c powershell_version=7.5.0-rc.1     && curl -fSL --output PowerShell.Linux.x64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.x64.$powershell_version.nupkg     && powershell_sha512='ec1f49c2b6e4c1768f43eed4a0e501d8280324bb11d0afc1025633cabb5718523cf6560b8abab027676330ed3dcfeaf09986ce7b3516aa62dd1bdb1e8989612a'     && echo "$powershell_sha512  PowerShell.Linux.x64.$powershell_version.nupkg" | sha512sum -c -     && mkdir -p /usr/share/powershell     && dotnet tool install --add-source / --tool-path /usr/share/powershell --version $powershell_version PowerShell.Linux.x64     && dotnet nuget locals all --clear     && rm PowerShell.Linux.x64.$powershell_version.nupkg     && ln -s /usr/share/powershell/pwsh /usr/bin/pwsh     && chmod 755 /usr/share/powershell/pwsh     && find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm # buildkit
                        
# 2025-01-15 03:01:48  468.01MB 执行命令并创建新的镜像层
RUN /bin/sh -c curl -fSL --output dotnet.tar.gz https://builds.dotnet.microsoft.com/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz     && dotnet_sha512='f093507ef635c3f8e572bf7b6ea7e144b85ccf6b7c6f914d3f182f782200a6088728663df5c9abe0638c9bd273fde3769ec824a6516f5fce734c4a4664ce3099'     && echo "$dotnet_sha512  dotnet.tar.gz" | sha512sum -c -     && mkdir -p /usr/share/dotnet     && tar -oxzf dotnet.tar.gz -C /usr/share/dotnet ./packs ./sdk ./sdk-manifests ./templates ./LICENSE.txt ./ThirdPartyNotices.txt     && rm dotnet.tar.gz     && dotnet help # buildkit
                        
# 2025-01-15 03:01:35  86.88MB 执行命令并创建新的镜像层
RUN /bin/sh -c apt-get update     && apt-get install -y --no-install-recommends         curl         git         libatomic1         wget     && rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2025-01-15 03:01:35  0.00B 设置环境变量 DOTNET_GENERATE_ASPNET_CERTIFICATE DOTNET_NOLOGO DOTNET_SDK_VERSION DOTNET_USE_POLLING_FILE_WATCHER NUGET_XMLDOC_MODE POWERSHELL_DISTRIBUTION_CHANNEL
ENV DOTNET_GENERATE_ASPNET_CERTIFICATE=false DOTNET_NOLOGO=true DOTNET_SDK_VERSION=9.0.102 DOTNET_USE_POLLING_FILE_WATCHER=true NUGET_XMLDOC_MODE=skip POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetSDK-Debian-12
                        
# 2025-01-15 03:01:23  24.69MB 复制新文件或目录到容器中
COPY /shared/Microsoft.AspNetCore.App /usr/share/dotnet/shared/Microsoft.AspNetCore.App # buildkit
                        
# 2025-01-15 03:01:23  0.00B 设置环境变量 ASPNET_VERSION
ENV ASPNET_VERSION=9.0.1
                        
# 2025-01-15 03:01:13  24.00B 执行命令并创建新的镜像层
RUN /bin/sh -c ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet # buildkit
                        
# 2025-01-15 03:01:13  77.96MB 复制新文件或目录到容器中
COPY /dotnet /usr/share/dotnet # buildkit
                        
# 2025-01-15 03:01:13  0.00B 设置环境变量 DOTNET_VERSION
ENV DOTNET_VERSION=9.0.1
                        
# 2025-01-15 03:01:05  8.46KB 执行命令并创建新的镜像层
RUN /bin/sh -c groupadd         --gid=$APP_UID         app     && useradd -l         --uid=$APP_UID         --gid=$APP_UID         --create-home         app # buildkit
                        
# 2025-01-15 03:01:04  46.23MB 执行命令并创建新的镜像层
RUN /bin/sh -c apt-get update     && apt-get install -y --no-install-recommends         ca-certificates                 libc6         libgcc-s1         libicu72         libssl3         libstdc++6         tzdata     && rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2025-01-15 03:01:04  0.00B 设置环境变量 APP_UID ASPNETCORE_HTTP_PORTS DOTNET_RUNNING_IN_CONTAINER
ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true
                        
# 2025-01-13 08:00:00  74.77MB 
# debian.sh --arch 'amd64' out/ 'bookworm' '@1736726400'
                        
                    

镜像信息

{
    "Id": "sha256:3cb0d12d309310b704601a48fdfcb3fbcc0a882c1957b4e1bb82b22d6ace979b",
    "RepoTags": [
        "mcr.microsoft.com/dotnet/sdk:9.0",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk:9.0"
    ],
    "RepoDigests": [
        "mcr.microsoft.com/dotnet/sdk@sha256:84fd557bebc64015e731aca1085b92c7619e49bdbe247e57392a43d92276f617",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mcr.microsoft.com/dotnet/sdk@sha256:0189e4f1c825c5b9dffcc1d2045ff907b93acc933910811645965aeb78bd8ab0"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-01-14T19:01:51.820519925Z",
    "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/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "APP_UID=1654",
            "ASPNETCORE_HTTP_PORTS=8080",
            "DOTNET_RUNNING_IN_CONTAINER=true",
            "DOTNET_VERSION=9.0.1",
            "ASPNET_VERSION=9.0.1",
            "DOTNET_GENERATE_ASPNET_CERTIFICATE=false",
            "DOTNET_NOLOGO=true",
            "DOTNET_SDK_VERSION=9.0.102",
            "DOTNET_USE_POLLING_FILE_WATCHER=true",
            "NUGET_XMLDOC_MODE=skip",
            "POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetSDK-Debian-12"
        ],
        "Cmd": [
            "bash"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 828932465,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/f556e3db8e678fddf2458a64da95c6e18b58d3d4c732c4786f09f9b09d0bce65/diff:/var/lib/docker/overlay2/3ea9135c42e56d96f0c126fc908d8a0fce313ecc2dcdd402760d2c3beeac46cc/diff:/var/lib/docker/overlay2/39c074b71b4b5d1a6387ae23871bc445267c3fdb200479573f29b4d4e78e2052/diff:/var/lib/docker/overlay2/143aaab404ddc37112dd16263047b378bc5ac40d42970670b04791d9c6fcf45e/diff:/var/lib/docker/overlay2/81fb4b5407a21f59c3e4808e4fd34ca3af5fc99748bf5ebc355adf24edcb4ebd/diff:/var/lib/docker/overlay2/a4c04e438c459fdd4ce8b07063941466e1f56c512f8c92f7c64a67b60f0d1447/diff:/var/lib/docker/overlay2/eacf097e4f3551af707b626433b64726223e686bf2f61da9b7b620a18e78b484/diff:/var/lib/docker/overlay2/84c5fbb64568c2307107468523b21101c6d2cc2d93b7bd46134875b7faeff5d5/diff",
            "MergedDir": "/var/lib/docker/overlay2/59a047231d490f5ca160af9bd8655b88c03370c9dd100715c9e544e67905761e/merged",
            "UpperDir": "/var/lib/docker/overlay2/59a047231d490f5ca160af9bd8655b88c03370c9dd100715c9e544e67905761e/diff",
            "WorkDir": "/var/lib/docker/overlay2/59a047231d490f5ca160af9bd8655b88c03370c9dd100715c9e544e67905761e/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:f5fe472da25334617e6e6467c7ebce41e0ae5580e5bd0ecbf0d573bacd560ecb",
            "sha256:3b245d6409b15cc3cdbf18f27a61f750658af563e84b12f56a8b6598e86d8f80",
            "sha256:d54764d9a8e78543560e1955621562a2faa3e96d5416c7fd142ba361d8cf3b8b",
            "sha256:5479f1788e9874e467fa5511631e14a7587d238ba96f021a2e20c91c3ea84d17",
            "sha256:c9aaa778af8e50ea31b20382c73765cc9c35aad88390a113d0926c75f8b8049b",
            "sha256:064dc71a19783132de5df1a206094f1079a5613b2bcf09e70b7e98f06fd7f870",
            "sha256:2e7a3a1e4448483c8c50eed04f3d58bfd2a6064d6fff7beebcc5db6e2140c58e",
            "sha256:7e9d6a3f8c92272c8034e765eb8eac204ee5292d462deb5ff7cf965b8d30626b",
            "sha256:1bb564ecf2526ad3a0575f7e298d83d57f969c15c1a3ff47fd305f95e7845c11"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-01-16T16:07:13.11665849+08:00"
    }
}

更多版本

docker.io/mcr.microsoft.com/dotnet/sdk:9.0

linux/amd64 docker.io828.93MB2025-01-16 16:07
16