docker.io/golang:alpine3.21 linux/amd64

docker.io/golang:alpine3.21 - 国内下载镜像源 浏览次数:52
🎉
Go语言官方镜像
这是一个由 Docker Hub 提供的 Go 语言官方镜像,您可以基于这个镜像创建自己的 Go 项目容器。
源镜像 docker.io/golang:alpine3.21
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21
镜像ID sha256:8a6d980675843020a9b50696ec178531295719f6b771fc4d7ff3db87d97934d0
镜像TAG alpine3.21
大小 245.60MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/sh
启动入口
工作目录 /go
OS/平台 linux/amd64
浏览量 52 次
贡献者
镜像创建 2024-12-05T13:15:10Z
同步时间 2024-12-27 16:35
更新时间 2025-01-17 01:43
环境变量
PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOLANG_VERSION=1.23.4 GOTOOLCHAIN=local GOPATH=/go
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.21.0 扫描引擎: Trivy 扫描时间: 2024-12-27 16:35

低危漏洞:0 中危漏洞:0 高危漏洞:0 严重漏洞:0

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21  docker.io/golang:alpine3.21

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21  docker.io/golang:alpine3.21

Shell快速替换命令

sed -i 's#golang:alpine3.21#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21  docker.io/golang:alpine3.21'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21  docker.io/golang:alpine3.21'

镜像构建历史


# 2024-12-05 21:15:10  0.00B 设置工作目录为/go
WORKDIR /go
                        
# 2024-12-05 21:15:10  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit
                        
# 2024-12-05 21:15:10  237.22MB 复制新文件或目录到容器中
COPY /target/ / # buildkit
                        
# 2024-12-05 21:15:10  0.00B 设置环境变量 PATH
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-12-05 21:15:10  0.00B 设置环境变量 GOPATH
ENV GOPATH=/go
                        
# 2024-12-05 21:15:10  0.00B 设置环境变量 GOTOOLCHAIN
ENV GOTOOLCHAIN=local
                        
# 2024-12-05 21:15:10  0.00B 设置环境变量 GOLANG_VERSION
ENV GOLANG_VERSION=1.23.4
                        
# 2024-12-05 21:15:10  541.32KB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit
                        
# 2024-12-05 20:49:04  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2024-12-05 20:49:04  7.84MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.0-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:8a6d980675843020a9b50696ec178531295719f6b771fc4d7ff3db87d97934d0",
    "RepoTags": [
        "golang:alpine3.21",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine3.21"
    ],
    "RepoDigests": [
        "golang@sha256:6c5c9590f169f77c8046e45c611d3b28fe477789acd8d3762d23d4744de69812",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang@sha256:9ea37fba08fe2d911f3bd30230a8713fba870d736a6993b26a1bc7a08d834d60"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-12-05T13:15:10Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "GOLANG_VERSION=1.23.4",
            "GOTOOLCHAIN=local",
            "GOPATH=/go"
        ],
        "Cmd": [
            "/bin/sh"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/go",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 245597579,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/52e21170bc01fc792738c1496c166262e236628258f8a4eb1d6e22364889f9bb/diff:/var/lib/docker/overlay2/97da3399448900b183b0f9f69ad69feed25d1d51104f86cdbe85e85a815a1cc2/diff:/var/lib/docker/overlay2/b368edd771e82dfa0cd2285e013472f052f2ab7fabc0e5a114e63c708c3ce3f1/diff:/var/lib/docker/overlay2/53b5fa4579ad9922109e31b10a65d1b10dd6501a5a8bc80d4175a9324cdbf2e0/diff",
            "MergedDir": "/var/lib/docker/overlay2/f5a7c03e71378fad0a080a3e43b5220358053a2f37553989cc09ebeb3ef5ba55/merged",
            "UpperDir": "/var/lib/docker/overlay2/f5a7c03e71378fad0a080a3e43b5220358053a2f37553989cc09ebeb3ef5ba55/diff",
            "WorkDir": "/var/lib/docker/overlay2/f5a7c03e71378fad0a080a3e43b5220358053a2f37553989cc09ebeb3ef5ba55/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:3e01818d79cd3467f1d60e54224f3f6ce5170eceb54e265d96bb82344b8c24e7",
            "sha256:513987f842f14edf73d51e5132aad2051fddcf9208392b86a9f6b1279eb003ea",
            "sha256:f3fe8ef9af879b859f179a878b5c79a4a9e7b0e0643eaf2bd89002dc96c55a75",
            "sha256:0c5591fb292891a5543616386180fba46eed8c15542c17b568e56989180d7f16",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-27T16:35:13.222515338+08:00"
    }
}

更多版本

docker.io/golang:1.22.4-bookworm

linux/amd64 docker.io822.31MB2024-06-11 18:25
394

docker.io/golang:1.22.4-alpine3.20

linux/amd64 docker.io230.56MB2024-06-11 18:27
1114

docker.io/golang:alpine

linux/amd64 docker.io230.61MB2024-07-16 11:03
801

docker.io/golang:1.21-alpine

linux/amd64 docker.io222.19MB2024-09-02 17:07
380

docker.io/golang:1.20.2

linux/amd64 docker.io777.74MB2024-09-13 17:45
348

docker.io/golang:1.21

linux/amd64 docker.io813.93MB2024-09-19 03:04
302

docker.io/golang:1.11

linux/amd64 docker.io796.46MB2024-09-30 11:40
214

docker.io/golang:1.22.5-alpine

linux/amd64 docker.io230.60MB2024-10-12 15:35
171

docker.io/golang:1.23.2-bullseye

linux/amd64 docker.io769.42MB2024-10-17 14:19
204

docker.io/golang:1.23-alpine

linux/amd64 docker.io245.47MB2024-11-01 10:50
297

docker.io/golang:1-alpine

linux/amd64 docker.io245.52MB2024-11-09 12:50
76

docker.io/golang:1.23.1

linux/amd64 docker.io837.65MB2024-11-21 17:33
99

docker.io/golang:1.18.10-buster

linux/amd64 docker.io907.61MB2024-12-03 11:26
63

docker.io/golang:1.13.15

linux/amd64 docker.io803.42MB2024-12-03 11:29
48

docker.io/golang:1.10.8-stretch

linux/amd64 docker.io760.04MB2024-12-03 11:34
50

docker.io/golang:1.17.13-buster

linux/amd64 docker.io884.21MB2024-12-03 11:39
62

docker.io/golang:1.22.10

linux/amd64 docker.io822.20MB2024-12-04 17:46
74

docker.io/golang:1.22.10

linux/arm64 docker.io829.65MB2024-12-04 17:49
71

docker.io/golang:1.21-alpine

linux/arm64 docker.io221.60MB2024-12-05 10:08
62

docker.io/golang:1.14.2

linux/amd64 docker.io809.39MB2024-12-17 10:48
46

docker.io/golang:1.14

linux/amd64 docker.io810.62MB2024-12-17 10:52
49

docker.io/golang:1.21.3-bookworm

linux/amd64 docker.io814.58MB2024-12-17 18:12
51

docker.io/golang:1.22-alpine

linux/amd64 docker.io230.71MB2024-12-18 11:21
59

docker.io/golang:1.17.3-buster

linux/amd64 docker.io883.51MB2024-12-27 14:25
46

docker.io/golang:alpine3.21

linux/amd64 docker.io245.60MB2024-12-27 16:35
51

docker.io/golang:1.22.5-bullseye

linux/amd64 docker.io754.34MB2025-01-15 15:24
17