docker.io/golang:1.18.10-buster linux/amd64

docker.io/golang:1.18.10-buster - 国内下载镜像源 浏览次数:64
🎉
Go语言官方镜像
这是一个由 Docker Hub 提供的 Go 语言官方镜像,您可以基于这个镜像创建自己的 Go 项目容器。
源镜像 docker.io/golang:1.18.10-buster
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:1.18.10-buster
镜像ID sha256:6f8afb2e10302932913331832643a2e3a353a34d3eb5ecdcc3ab6ade1a564a03
镜像TAG 1.18.10-buster
大小 907.61MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD bash
启动入口
工作目录 /go
OS/平台 linux/amd64
浏览量 64 次
贡献者
镜像创建 2023-01-11T21:52:46.479977979Z
同步时间 2024-12-03 11:26
更新时间 2025-01-17 09:09
环境变量
PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOLANG_VERSION=1.18.10 GOPATH=/go
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 10.13 扫描引擎: Trivy 扫描时间: 2024-12-03 11:28

低危漏洞:732 中危漏洞:2699 高危漏洞:991 严重漏洞:89

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2023-01-12 05:52:46  0.00B 
/bin/sh -c #(nop) WORKDIR /go
                        
# 2023-01-12 05:52:46  0.00B 
/bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
                        
# 2023-01-12 05:52:45  0.00B 
/bin/sh -c #(nop)  ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2023-01-12 05:52:45  0.00B 
/bin/sh -c #(nop)  ENV GOPATH=/go
                        
# 2023-01-12 05:52:44  431.71MB 
/bin/sh -c set -eux; 	arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; 	url=; 	case "$arch" in 		'amd64') 			url='https://dl.google.com/go/go1.18.10.linux-amd64.tar.gz'; 			sha256='5e05400e4c79ef5394424c0eff5b9141cb782da25f64f79d54c98af0a37f8d49'; 			;; 		'armel') 			export GOARCH='arm' GOARM='5' GOOS='linux'; 			;; 		'armhf') 			url='https://dl.google.com/go/go1.18.10.linux-armv6l.tar.gz'; 			sha256='e9f2f2361364c04a8f0d12228e4c5c2b870f4d1639ca92031c4013a95aa205be'; 			;; 		'arm64') 			url='https://dl.google.com/go/go1.18.10.linux-arm64.tar.gz'; 			sha256='160497c583d4c7cbc1661230e68b758d01f741cf4bece67e48edc4fdd40ed92d'; 			;; 		'i386') 			url='https://dl.google.com/go/go1.18.10.linux-386.tar.gz'; 			sha256='9249551992c9518ec8ce6690d32206f12ed9122e360407f7e7ab9a6adc627a9b'; 			;; 		'mips64el') 			export GOARCH='mips64le' GOOS='linux'; 			;; 		'ppc64el') 			url='https://dl.google.com/go/go1.18.10.linux-ppc64le.tar.gz'; 			sha256='761014290febf0e10dfeba44ec551792dad32270a11debee8ed4f30c5f3c760d'; 			;; 		's390x') 			url='https://dl.google.com/go/go1.18.10.linux-s390x.tar.gz'; 			sha256='9755ab0460a04b535e513fac84db2e1ae6a197d66d3a097e14aed3b3114df85d'; 			;; 		*) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; 	esac; 	build=; 	if [ -z "$url" ]; then 		build=1; 		url='https://dl.google.com/go/go1.18.10.src.tar.gz'; 		sha256='9cedcca58845df0c9474ae00274c44a95c9dfaefb132fc59921c28c7c106f8e6'; 		echo >&2; 		echo >&2 "warning: current architecture ($arch) does not have a compatible Go binary release; will be building from source"; 		echo >&2; 	fi; 		wget -O go.tgz.asc "$url.asc"; 	wget -O go.tgz "$url" --progress=dot:giga; 	echo "$sha256 *go.tgz" | sha256sum -c -; 		GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; 	gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC  EC91 7721 F63B D38B 4796'; 	gpg --batch --keyserver keyserver.ubuntu.com --recv-keys '2F52 8D36 D67B 69ED F998  D857 78BD 6547 3CB3 BD13'; 	gpg --batch --verify go.tgz.asc go.tgz; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME" go.tgz.asc; 		tar -C /usr/local -xzf go.tgz; 	rm go.tgz; 		if [ -n "$build" ]; then 		savedAptMark="$(apt-mark showmanual)"; 		apt-get update; 		apt-get install -y --no-install-recommends golang-go; 				export GOCACHE='/tmp/gocache'; 				( 			cd /usr/local/go/src; 			export GOROOT_BOOTSTRAP="$(go env GOROOT)" GOHOSTOS="$GOOS" GOHOSTARCH="$GOARCH"; 			./make.bash; 		); 				apt-mark auto '.*' > /dev/null; 		apt-mark manual $savedAptMark > /dev/null; 		apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; 		rm -rf /var/lib/apt/lists/*; 				rm -rf 			/usr/local/go/pkg/*/cmd 			/usr/local/go/pkg/bootstrap 			/usr/local/go/pkg/obj 			/usr/local/go/pkg/tool/*/api 			/usr/local/go/pkg/tool/*/go_bootstrap 			/usr/local/go/src/cmd/dist/dist 			"$GOCACHE" 		; 	fi; 		go version
                        
# 2023-01-12 05:52:30  0.00B 
/bin/sh -c #(nop)  ENV GOLANG_VERSION=1.18.10
                        
# 2023-01-12 05:51:10  0.00B 
/bin/sh -c #(nop)  ENV PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2023-01-12 05:51:10  182.10MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		g++ 		gcc 		libc6-dev 		make 		pkg-config 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2023-01-11 11:06:14  145.59MB 
/bin/sh -c apt-get update && apt-get install -y --no-install-recommends 		git 		mercurial 		openssh-client 		subversion 				procps 	&& rm -rf /var/lib/apt/lists/*
                        
# 2023-01-11 11:05:53  17.55MB 
/bin/sh -c set -ex; 	if ! command -v gpg > /dev/null; then 		apt-get update; 		apt-get install -y --no-install-recommends 			gnupg 			dirmngr 		; 		rm -rf /var/lib/apt/lists/*; 	fi
                        
# 2023-01-11 11:05:46  16.55MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		curl 		netbase 		wget 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2023-01-11 10:34:55  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2023-01-11 10:34:54  114.11MB 
/bin/sh -c #(nop) ADD file:4bf66d4081da52e8b692fcff96aad84d3e68bda4f62e870e8f4803153c70e24c in / 
                        
                    

镜像信息

{
    "Id": "sha256:6f8afb2e10302932913331832643a2e3a353a34d3eb5ecdcc3ab6ade1a564a03",
    "RepoTags": [
        "golang:1.18.10-buster",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang:1.18.10-buster"
    ],
    "RepoDigests": [
        "golang@sha256:ed56e8d7ced2a5e02a6555d1a308a2f22d917ad39f91337ae387ca4f7cf06e3e",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/golang@sha256:a0056dc569d72a14fdd3ac6b0a1a2c98c0995f5c10eb2f405458ac9373547a1b"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2023-01-11T21:52:46.479977979Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "20.10.12",
    "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.18.10",
            "GOPATH=/go"
        ],
        "Cmd": [
            "bash"
        ],
        "Image": "sha256:d6e5062fc83bdd1a39b97336275b1a1b435b3f4659ad8cef8ad659f90eb51af7",
        "Volumes": null,
        "WorkingDir": "/go",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 907607488,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/fa29ffe1dd92f9f292893d29072ab065a557aa53853f02549db0a78888c3f6d9/diff:/var/lib/docker/overlay2/a68264992897dcf8e24722f517b170e4cbbbde6866e2d844954d94ab343924d1/diff:/var/lib/docker/overlay2/fb086e191c25e6bbb411e1dfac5726f14b5b88992dd8933cf87d7aba07408ee5/diff:/var/lib/docker/overlay2/9c79a9baac63e131cec83130140b60e5d8dff164622169bb56ef7edd81808b8c/diff:/var/lib/docker/overlay2/f92d9bc1ae0c67da9fba31013f5d19e48e970f8d37e9ed9f2c734d394938462b/diff:/var/lib/docker/overlay2/b8d13150f0c7ebfac8f019dde2142b983d77f3029e6e79c82623e35cb277b9e8/diff",
            "MergedDir": "/var/lib/docker/overlay2/e2355605ab0468cea6473641fef5480d4408980928730871692a53f862a4de08/merged",
            "UpperDir": "/var/lib/docker/overlay2/e2355605ab0468cea6473641fef5480d4408980928730871692a53f862a4de08/diff",
            "WorkDir": "/var/lib/docker/overlay2/e2355605ab0468cea6473641fef5480d4408980928730871692a53f862a4de08/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:083aacb889b3fc7c21c3c680a541f50b467ec7d7de97a48e43122d9a34219788",
            "sha256:b7392dc587490663dce94a350036df4060e5536400b1cf55d833e955bb36869b",
            "sha256:d5ce45249ce15069660d16956c4b7dd4e74e8b6a7e88283ed30f45aa37b15af3",
            "sha256:132e6b0c0edd2062fe1b4a1dc10196b7b442cbc3b8bcc0c183397cbb641ff950",
            "sha256:47eea018fb2923d5570215c373fc09d09629fad376ea630c7db206f883104db2",
            "sha256:50469133367a6fe63c7bd03c6bf6db439b0c2de76e2be24d6b7167e1c46146d7",
            "sha256:4ad331fdb76589760bb9e122a20f3b258e9ccc852c6b625d6c99b43e02146d16"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-03T11:25:40.97685134+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
204

docker.io/golang:1.23-alpine

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

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
50

docker.io/golang:1.17.13-buster

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

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
72

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
59

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
52

docker.io/golang:1.22.5-bullseye

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