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

docker.io/golang:1.24-alpine3.21 - 国内下载镜像源 浏览次数:14
🎉
Go语言官方镜像
这是一个由 Docker Hub 提供的 Go 语言官方镜像,您可以基于这个镜像创建自己的 Go 项目容器。
源镜像 docker.io/golang:1.24-alpine3.21
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:1.24-alpine3.21
镜像ID sha256:7930df93513ac6dc625ca8b924edbbb3bda521271c9b053d09b4c37994831f09
镜像TAG 1.24-alpine3.21
大小 261.02MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/sh
启动入口
工作目录 /go
OS/平台 linux/amd64
浏览量 14 次
贡献者
镜像创建 2025-03-04T19:43:12Z
同步时间 2025-04-01 21:35
更新时间 2025-04-03 02:19
环境变量
PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOLANG_VERSION=1.24.1 GOTOOLCHAIN=local GOPATH=/go

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2025-03-05 03:43:12  0.00B 设置工作目录为/go
WORKDIR /go
                        
# 2025-03-05 03:43:12  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit
                        
# 2025-03-05 03:43:12  252.65MB 复制新文件或目录到容器中
COPY /target/ / # buildkit
                        
# 2025-03-05 03:43:12  0.00B 设置环境变量 PATH
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2025-03-05 03:43:12  0.00B 设置环境变量 GOPATH
ENV GOPATH=/go
                        
# 2025-03-05 03:43:12  0.00B 设置环境变量 GOTOOLCHAIN
ENV GOTOOLCHAIN=local
                        
# 2025-03-05 03:43:12  0.00B 设置环境变量 GOLANG_VERSION
ENV GOLANG_VERSION=1.24.1
                        
# 2025-03-05 03:43:12  533.87KB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit
                        
# 2025-02-14 11:28:36  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2025-02-14 11:28:36  7.83MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.3-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:7930df93513ac6dc625ca8b924edbbb3bda521271c9b053d09b4c37994831f09",
    "RepoTags": [
        "golang:1.24-alpine3.21",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:1.24-alpine3.21"
    ],
    "RepoDigests": [
        "golang@sha256:43c094ad24b6ac0546c62193baeb3e6e49ce14d3250845d166c77c25f64b0386",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang@sha256:a0c4e97e5dbeb7c420b78489e1b90152312aa4d34e8fadd3ef2f7188130b23d1"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-03-04T19:43:12Z",
    "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.24.1",
            "GOTOOLCHAIN=local",
            "GOPATH=/go"
        ],
        "Cmd": [
            "/bin/sh"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/go",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 261021814,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/36400e1125d9e54db914957685be50d4a66bbe115605f0133bbb59375873356a/diff:/var/lib/docker/overlay2/77cd6ee694eb787b2d6fdc12b9ae8026907bef230cddb1e6a1c72f5a954fb4e6/diff:/var/lib/docker/overlay2/f16f44275e2bfa4ce67748b123586b1cb96ba89c7fd239028bd06a405681f7fc/diff:/var/lib/docker/overlay2/4e8c80c1de56b91b667718f35bdead0b4c91a2fdafbfe97c3c57654b169634d9/diff",
            "MergedDir": "/var/lib/docker/overlay2/75c335663276bca2410fdcc9deeb8a9c654caab42704b890db25c633e8f7ebce/merged",
            "UpperDir": "/var/lib/docker/overlay2/75c335663276bca2410fdcc9deeb8a9c654caab42704b890db25c633e8f7ebce/diff",
            "WorkDir": "/var/lib/docker/overlay2/75c335663276bca2410fdcc9deeb8a9c654caab42704b890db25c633e8f7ebce/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:08000c18d16dadf9553d747a58cf44023423a9ab010aab96cf263d2216b8b350",
            "sha256:040b911ff035de1c4531b814f51d4694785fdfbf6bdb07b1bc865d48b69de449",
            "sha256:e0f4cf0bdc482691782fcd0642612f0aa8ffc90ef2506f0619ab2507d726bafc",
            "sha256:4141acd56718d0d527f7376a0646f372a9d535b73ccd7d2a4dcb39b8e133539b",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-04-01T21:35:24.13694434+08:00"
    }
}

更多版本

docker.io/golang:1.22.4-bookworm

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

docker.io/golang:1.22.4-alpine3.20

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

docker.io/golang:alpine

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

docker.io/golang:1.21-alpine

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

docker.io/golang:1.20.2

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

docker.io/golang:1.21

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

docker.io/golang:1.11

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

docker.io/golang:1.22.5-alpine

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

docker.io/golang:1.23.2-bullseye

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

docker.io/golang:1.23-alpine

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

docker.io/golang:1-alpine

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

docker.io/golang:1.23.1

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

docker.io/golang:1.18.10-buster

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

docker.io/golang:1.13.15

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

docker.io/golang:1.10.8-stretch

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

docker.io/golang:1.17.13-buster

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

docker.io/golang:1.22.10

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

docker.io/golang:1.22.10

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

docker.io/golang:1.21-alpine

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

docker.io/golang:1.14.2

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

docker.io/golang:1.14

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

docker.io/golang:1.21.3-bookworm

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

docker.io/golang:1.22-alpine

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

docker.io/golang:1.17.3-buster

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

docker.io/golang:alpine3.21

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

docker.io/golang:1.22.5-bullseye

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

docker.io/golangci/golangci-lint:v1.53.3-alpine

linux/amd64 docker.io497.70MB2025-01-19 16:10
91

docker.io/golangci/golangci-lint:v1.61-alpine

linux/amd64 docker.io497.38MB2025-02-17 13:32
111

docker.io/golang:1.19

linux/amd64 docker.io1.06GB2025-02-26 15:34
65

docker.io/golang:1.24.1-alpine3.21

linux/amd64 docker.io261.02MB2025-03-05 23:49
95

docker.io/golang:1.24.1

linux/amd64 docker.io853.30MB2025-03-10 11:39
119

docker.io/golang:1.23.7

linux/amd64 docker.io837.91MB2025-03-11 10:35
70

docker.io/golang:1.23.7

linux/arm64 docker.io845.30MB2025-03-11 10:35
52

docker.io/golang:1.23-alpine

linux/arm64 docker.io243.88MB2025-03-13 01:03
53

docker.io/golang:1.24-alpine3.21

linux/amd64 docker.io261.02MB2025-04-01 21:35
13