docker.io/golang:alpine linux/amd64

docker.io/golang:alpine - 国内下载镜像源 浏览次数:801
🎉
Go语言官方镜像
这是一个由 Docker Hub 提供的 Go 语言官方镜像,您可以基于这个镜像创建自己的 Go 项目容器。
源镜像 docker.io/golang:alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine
镜像ID sha256:a60a31a97fdb2c7eac5f46e5ab4cdd6e79fb96e960b520f9574a34fa163fa785
镜像TAG alpine
大小 230.61MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/sh
启动入口
工作目录 /go
OS/平台 linux/amd64
浏览量 801 次
贡献者
镜像创建 2024-07-02T19:33:45Z
同步时间 2024-07-16 11:03
更新时间 2025-01-18 07:02
环境变量
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

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine  docker.io/golang: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  530.11KB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit
                        
# 2024-06-21 04:16:58  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2024-06-21 04:16:57  7.80MB 
/bin/sh -c #(nop) ADD file:33ebe56b967747a97dcec01bc2559962bee8823686c9739d26be060381bbb3ca in / 
                        
                    

镜像信息

{
    "Id": "sha256:a60a31a97fdb2c7eac5f46e5ab4cdd6e79fb96e960b520f9574a34fa163fa785",
    "RepoTags": [
        "golang:alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:alpine"
    ],
    "RepoDigests": [
        "golang@sha256:8c9183f715b0b4eca05b8b3dbf59766aaedb41ec07477b132ee2891ac0110a07",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang@sha256:dc9300cedf39c4fc430f542c828e412caacb6ba1fbc27a32fc2981083b8d4519"
    ],
    "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": 230605128,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/529752a07aa674a1ce4003e1d5b4dbef8cac08398e7594be9604de8e319f3903/diff:/var/lib/docker/overlay2/c7afe1de3d13022bf858e4da387fee7751c9e80e63cdbe2b7187a8135ae8898e/diff:/var/lib/docker/overlay2/ac82b7f55d26d4115de909ab778095a9699bd90beda841db822e953f4f998edd/diff:/var/lib/docker/overlay2/984bb007f5969551b53fa1fce3296c2df39ab51a6831eab684250ac7efdbac0c/diff",
            "MergedDir": "/var/lib/docker/overlay2/18689a313a078aaf02ccf700360bf45eac5c007c60848fed5bab1d55ee33ab73/merged",
            "UpperDir": "/var/lib/docker/overlay2/18689a313a078aaf02ccf700360bf45eac5c007c60848fed5bab1d55ee33ab73/diff",
            "WorkDir": "/var/lib/docker/overlay2/18689a313a078aaf02ccf700360bf45eac5c007c60848fed5bab1d55ee33ab73/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:94e5f06ff8e3d4441dc3cd8b090ff38dc911bfa8ebdb0dc28395bc98f82f983f",
            "sha256:183686dec37ccd53814683e7d5284fc98c225dc66496be224496e4b579c42847",
            "sha256:03efbc301ddfd093c26664436038e18bda3ae48a7872d6ac01d5dfb06af403b3",
            "sha256:9e3f54e0dab8bad74c4c65406efb4a60846ed2ff9f2d1ab2e5c54bf3206f18e8",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-07-16T11:03:07.68189255+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
800

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
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
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