docker.io/golang:1.21-alpine linux/arm64

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

系统OS: alpine 3.20.2 扫描引擎: Trivy 扫描时间: 2024-12-05 10:10

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

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-08-07 02:15:43  0.00B 设置工作目录为/go
WORKDIR /go
                        
# 2024-08-07 02:15:43  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit
                        
# 2024-08-07 02:15:43  212.14MB 复制新文件或目录到容器中
COPY /target/ / # buildkit
                        
# 2024-08-07 02:15:43  0.00B 设置环境变量 PATH
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-08-07 02:15:43  0.00B 设置环境变量 GOPATH
ENV GOPATH=/go
                        
# 2024-08-07 02:15:43  0.00B 设置环境变量 GOTOOLCHAIN
ENV GOTOOLCHAIN=local
                        
# 2024-08-07 02:15:43  0.00B 设置环境变量 GOLANG_VERSION
ENV GOLANG_VERSION=1.21.13
                        
# 2024-08-07 02:15:43  634.18KB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit
                        
# 2024-07-23 05:44:13  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2024-07-23 05:44:13  8.83MB 
/bin/sh -c #(nop) ADD file:a71f7e9bc66668361f88637c724c44deeb2774ec268ff0a68bd99014c8a02a84 in / 
                        
                    

镜像信息

{
    "Id": "sha256:2bbe4e7e4d4e0f6f1b6c7192f01b9c7099e921b9fe8eae0c5c939a1d257f7e81",
    "RepoTags": [
        "golang:1.21-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:1.21-alpine-linuxarm64"
    ],
    "RepoDigests": [
        "golang@sha256:2414035b086e3c42b99654c8b26e6f5b1b1598080d65fd03c7f499552ff4dc94",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang@sha256:693415900076e35b99ce1334d28f0bc721b1d7a9f3d173a6061c7040788b9e65"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-08-06T18:15:43Z",
    "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.21.13",
            "GOTOOLCHAIN=local",
            "GOPATH=/go"
        ],
        "Cmd": [
            "/bin/sh"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/go",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "arm64",
    "Os": "linux",
    "Size": 221602393,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/1c557cd702a1932d1728b4498aff3b53e2bb8ee79e05d019fa68feee7e750547/diff:/var/lib/docker/overlay2/363750dc798417797840475e77fff8b0a1532f1408a092afbae7e38f80eecf09/diff:/var/lib/docker/overlay2/62b6ffd507b48b375e2d35fc1ec219e66177197a67e4bb53bc16f83c8c642267/diff:/var/lib/docker/overlay2/26005a7f09898778255b9695234943c95c9482a0357d846f673adca97397c571/diff",
            "MergedDir": "/var/lib/docker/overlay2/55671cc855e6867b970ba74802c48840532de52be39e9400a0494f7fbee783e9/merged",
            "UpperDir": "/var/lib/docker/overlay2/55671cc855e6867b970ba74802c48840532de52be39e9400a0494f7fbee783e9/diff",
            "WorkDir": "/var/lib/docker/overlay2/55671cc855e6867b970ba74802c48840532de52be39e9400a0494f7fbee783e9/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:9110f7b5208f035f4d4f99b5169338169e1df9bb2519d1b047f50f54430bacc2",
            "sha256:9a56ead712b59a4c7e39d9c33f863ce951892e7e74901de615d5005bb695c62a",
            "sha256:c63593ddc7d1adc2e1cff99afc774b66ef94581743b5636238b82b36de228419",
            "sha256:ab72fdaa4f3e33e4dc3d1dcfbb24fbecbfb1532a0e3b097e4f85b33174a78c8f",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-05T10:08:36.165610409+08:00"
    }
}

更多版本

docker.io/golang:1.22.4-bookworm

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

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
800

docker.io/golang:1.21-alpine

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

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
202

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
75

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
47

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
73

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
61

docker.io/golang:1.14.2

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

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
50

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
45

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
16