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

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

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

低危漏洞:2 中危漏洞:40 高危漏洞:19 严重漏洞:0

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

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

Containerd拉取命令

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

Shell快速替换命令

sed -i 's#golang:1.22.5-alpine#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:1.22.5-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.5-alpine && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:1.22.5-alpine  docker.io/golang:1.22.5-alpine'

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-07-03 03:33:45  0.00B 设置工作目录为/go
WORKDIR /go
                        
# 2024-07-03 03:33:45  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit
                        
# 2024-07-03 03:33:45  222.28MB 复制新文件或目录到容器中
COPY /target/ / # buildkit
                        
# 2024-07-03 03:33:45  0.00B 设置环境变量 PATH
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-07-03 03:33:45  0.00B 设置环境变量 GOPATH
ENV GOPATH=/go
                        
# 2024-07-03 03:33:45  0.00B 设置环境变量 GOTOOLCHAIN
ENV GOTOOLCHAIN=local
                        
# 2024-07-03 03:33:45  0.00B 设置环境变量 GOLANG_VERSION
ENV GOLANG_VERSION=1.22.5
                        
# 2024-07-03 03:33:45  527.97KB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit
                        
# 2024-07-03 03:33:45  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2024-07-03 03:33:45  7.80MB 
/bin/sh -c #(nop) ADD file:99093095d62d0421541d882f9ceeddb2981fe701ec0aa9d2c08480712d5fed21 in / 
                        
                    

镜像信息

{
    "Id": "sha256:0f132aac134a24dc4a7c5fb004654a3118de7d28e71e2b46629abd85fd6a56a1",
    "RepoTags": [
        "golang:1.22.5-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:1.22.5-alpine"
    ],
    "RepoDigests": [
        "golang@sha256:0d3653dd6f35159ec6e3d10263a42372f6f194c3dea0b35235d72aabde86486e",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang@sha256:765094ccddd7558f57c785d72064a27a5eca448bdd664d617fc9bc1c06ffb83a"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-07-02T19:33:45Z",
    "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.5",
            "GOTOOLCHAIN=local",
            "GOPATH=/go"
        ],
        "Cmd": [
            "/bin/sh"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/go",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 230601932,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/aafeb95aeca418bca1e426204a476f8d3503924b56e2a1633f6b9299f8274096/diff:/var/lib/docker/overlay2/7e454184dcbbec49afc19db7fbae53abe1f701dc53de53229447e72889232cac/diff:/var/lib/docker/overlay2/f352bb305c065677146997e7067b154478e25bbf3e7866d127da45c3e06fd54f/diff:/var/lib/docker/overlay2/9e80283bb87118bc5d2b2a7bcbc539e0ffe7ffae790d06785a8aa879ebf163b9/diff",
            "MergedDir": "/var/lib/docker/overlay2/9020da0ba9e1e96aad03c838dd395859c66542feb431298d6d9a55874dda5698/merged",
            "UpperDir": "/var/lib/docker/overlay2/9020da0ba9e1e96aad03c838dd395859c66542feb431298d6d9a55874dda5698/diff",
            "WorkDir": "/var/lib/docker/overlay2/9020da0ba9e1e96aad03c838dd395859c66542feb431298d6d9a55874dda5698/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:78561cef0761903dd2f7d09856150a6d4fb48967a8f113f3e33d79effbf59a07",
            "sha256:5414b739f1485d8bac6bd050e747ce60aed8e986978768cea6a8222b7e1004bd",
            "sha256:03efbc301ddfd093c26664436038e18bda3ae48a7872d6ac01d5dfb06af403b3",
            "sha256:b046bf851387d69cbb7dea6ffd45bf82063010725cd1eadad493d247d8a37df8",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-10-12T15:35:29.062891007+08:00"
    }
}

更多版本

docker.io/golang:1.22.4-bookworm

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

docker.io/golang:1.22.4-alpine3.20

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

docker.io/golang:alpine

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

docker.io/golang:1.21-alpine

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

docker.io/golang:1.20.2

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

docker.io/golang:1.21

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

docker.io/golang:1.11

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

docker.io/golang:1.22.5-alpine

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

docker.io/golang:1.23.2-bullseye

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

docker.io/golang:1.23-alpine

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

docker.io/golang:1-alpine

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

docker.io/golang:1.23.1

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

docker.io/golang:1.18.10-buster

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

docker.io/golang:1.13.15

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

docker.io/golang:1.10.8-stretch

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

docker.io/golang:1.17.13-buster

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

docker.io/golang:1.22.10

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

docker.io/golang:1.22.10

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

docker.io/golang:1.21-alpine

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

docker.io/golang:1.14.2

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

docker.io/golang:1.14

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

docker.io/golang:1.21.3-bookworm

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

docker.io/golang:1.22-alpine

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

docker.io/golang:1.17.3-buster

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

docker.io/golang:alpine3.21

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

docker.io/golang:1.22.5-bullseye

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

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

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