docker.io/golang:1.22-alpine linux/amd64

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

系统OS: alpine 3.21.0 扫描引擎: Trivy 扫描时间: 2024-12-18 11:22

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

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 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  222.33MB 复制新文件或目录到容器中
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.22.10
                        
# 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:b391fd245842a219ca768ef4c33b128035fafc612294ca7b76aede6d102e4179",
    "RepoTags": [
        "golang:1.22-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:1.22-alpine"
    ],
    "RepoDigests": [
        "golang@sha256:58a82e883f0d11f52204d2baa58a62dc565c409105773526340f678c9dc2558f",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang@sha256:3e6d8897a33734fce9eaeeaabf8ff7bcfef4b363f804f7754bc7a1c6b34c3eb2"
    ],
    "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.22.10",
            "GOTOOLCHAIN=local",
            "GOPATH=/go"
        ],
        "Cmd": [
            "/bin/sh"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/go",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 230712402,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/adb87153edaaa12aa850175a06e54d79fa5cdabad13c0736a01b6c2b0787bead/diff:/var/lib/docker/overlay2/57088269edc8a45b2cf9ecc511745da3618bc2815e1632f42c26208d8ea51bb1/diff:/var/lib/docker/overlay2/adee6d76ae107bc513b65e23598292e885e72c425a36e380359d0e7b05eae528/diff:/var/lib/docker/overlay2/f07ea7cb47adf971ea839c1595bfec4091f695e5c89b7266542a721564307497/diff",
            "MergedDir": "/var/lib/docker/overlay2/e9d4a79f7f1800ca71af2f655d90be981c98bcb8c958c2dc78176ca0168b8699/merged",
            "UpperDir": "/var/lib/docker/overlay2/e9d4a79f7f1800ca71af2f655d90be981c98bcb8c958c2dc78176ca0168b8699/diff",
            "WorkDir": "/var/lib/docker/overlay2/e9d4a79f7f1800ca71af2f655d90be981c98bcb8c958c2dc78176ca0168b8699/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:3e01818d79cd3467f1d60e54224f3f6ce5170eceb54e265d96bb82344b8c24e7",
            "sha256:34d4b3848c05736b439f4b5431e08867181a9b444afe7ce2e52c077b987fe177",
            "sha256:499b5ed5598d2853bffd63292cd0ed88e93a4cfbe7bba86ad211dd401896bb41",
            "sha256:c7e07f7f8e561b215249cde0d4a8cc46512920fbf40e3d63452c7684c94e4ee4",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-18T11:21:01.731455026+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
203

docker.io/golang:1.23-alpine

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

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
49

docker.io/golang:1.17.13-buster

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

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
58

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