docker.io/gcc:latest linux/arm64

docker.io/gcc:latest - 国内下载镜像源 浏览次数:146

温馨提示:此镜像为latest tag镜像,本站无法保证此版本为最新镜像

温馨提示: 这是一个 linux/arm64 系统架构镜像

GCC Docker Image Description

GCC(GNU Compiler Collection)是一个开源编译器套件,可以用于编译C、C++、Fortran和其他语言的程序。这个Docker镜像提供了一个基于GCC的编译环境,可以用来开发、编译和运行各种类型的程序。
源镜像 docker.io/gcc:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gcc:latest-linuxarm64
镜像ID sha256:54784777d11fc405f4f898670f3fe6c1002201d446d35c72959075dcea26b2cb
镜像TAG latest-linuxarm64
大小 1.39GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD bash
启动入口
工作目录
OS/平台 linux/arm64
浏览量 146 次
贡献者 54******2@qq.com
镜像创建 2024-08-01T14:25:18Z
同步时间 2024-11-04 11:58
更新时间 2025-04-04 20:30
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GPG_KEYS=B215C1633BCA0477615F1B35A5B3A004745C015A B3C42148A44E6983B3E4CC0793FA9B1AB75C61B8 90AA470469D3965A87A5DCB494D03953902C9419 80F98B2E0DAB6C8281BDF541A7C8C3B2F71EDF1C 7F74F97C103468EE5D750B583AB00996FC26A641 33C235A34C46AA3FFB293709A328C3A2C3C45C06 D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62 GCC_MIRRORS=https://ftpmirror.gnu.org/gcc https://mirrors.kernel.org/gnu/gcc https://bigsearcher.com/mirrors/gcc/releases http://www.netgull.com/gcc/releases https://ftpmirror.gnu.org/gcc https://sourceware.org/pub/gcc/releases ftp://ftp.gnu.org/gnu/gcc GCC_VERSION=14.2.0
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.7 扫描引擎: Trivy 扫描时间: 2024-11-04 11:58

低危漏洞:529 中危漏洞:561 高危漏洞:146 严重漏洞:7

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gcc:latest-linuxarm64
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gcc:latest-linuxarm64  docker.io/gcc:latest

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gcc:latest-linuxarm64
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gcc:latest-linuxarm64  docker.io/gcc:latest

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-08-01 22:25:18  11.59KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; 	dpkg-divert --divert /usr/bin/gcc.orig --rename /usr/bin/gcc; 	dpkg-divert --divert /usr/bin/g++.orig --rename /usr/bin/g++; 	dpkg-divert --divert /usr/bin/gfortran.orig --rename /usr/bin/gfortran; 	update-alternatives --install /usr/bin/cc cc /usr/local/bin/gcc 999 # buildkit
                        
# 2024-08-01 22:25:18  42.35KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; 	{ echo '/usr/local/lib64'; echo '/usr/local/lib'; } > /etc/ld.so.conf.d/000-local-lib.conf; 	ldconfig -v; 	deb="$(readlink -ve /usr/lib/*/libstdc++.so* | head -1)"; 	gcc="$(readlink -ve /usr/local/lib*/libstdc++.so | head -1)"; 	LD_PRELOAD="$deb" abidiff --no-added-syms "$deb" "$gcc" # buildkit
                        
# 2024-08-01 22:25:18  448.98MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends 		dpkg-dev 		flex 		gnupg 	; 	rm -r /var/lib/apt/lists/*; 		_fetch() { 		local fetch="$1"; shift; 		local file="$1"; shift; 		for mirror in $GCC_MIRRORS; do 			if curl -fL "$mirror/$fetch" -o "$file"; then 				return 0; 			fi; 		done; 		echo >&2 "error: failed to download '$fetch' from several mirrors"; 		return 1; 	}; 		_fetch "gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.xz.sig" 'gcc.tar.xz.sig'; 	_fetch "gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.xz" 'gcc.tar.xz'; 	export GNUPGHOME="$(mktemp -d)"; 	for key in $GPG_KEYS; do 		gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; 	done; 	gpg --batch --verify gcc.tar.xz.sig gcc.tar.xz; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME"; 	mkdir -p /usr/src/gcc; 	tar -xf gcc.tar.xz -C /usr/src/gcc --strip-components=1; 	rm gcc.tar.xz*; 		cd /usr/src/gcc; 		./contrib/download_prerequisites; 	{ rm *.tar.* || true; }; 		for f in config.guess config.sub; do 		wget -O "$f" "https://git.savannah.gnu.org/cgit/config.git/plain/$f?id=7d3d27baf8107b630586c962c057e22149653deb"; 		find -mindepth 2 -name "$f" -exec cp -v "$f" '{}' ';'; 	done; 		dir="$(mktemp -d)"; 	cd "$dir"; 		extraConfigureArgs=''; 	dpkgArch="$(dpkg --print-architecture)"; 	case "$dpkgArch" in 		armel) 			extraConfigureArgs="$extraConfigureArgs --with-arch=armv5te --with-float=soft" 			;; 		armhf) 			extraConfigureArgs="$extraConfigureArgs --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb" 			;; 				i386) 			extraConfigureArgs="$extraConfigureArgs --with-arch-32=i686"; 			;; 	esac; 		gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; 	/usr/src/gcc/configure 		--build="$gnuArch" 		--disable-multilib 		--enable-languages=c,c++,fortran,go 		$extraConfigureArgs 	; 	make -j "$(nproc)"; 	make install-strip; 		cd ..; 		rm -rf "$dir" /usr/src/gcc; 		apt-mark auto '.*' > /dev/null; 	[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
                        
# 2024-08-01 22:25:18  0.00B 设置环境变量 GCC_VERSION
ENV GCC_VERSION=14.2.0
                        
# 2024-08-01 22:25:18  0.00B 设置环境变量 GCC_MIRRORS
ENV GCC_MIRRORS=https://ftpmirror.gnu.org/gcc 		https://mirrors.kernel.org/gnu/gcc 		https://bigsearcher.com/mirrors/gcc/releases 		http://www.netgull.com/gcc/releases 		https://ftpmirror.gnu.org/gcc 		https://sourceware.org/pub/gcc/releases 		ftp://ftp.gnu.org/gnu/gcc
                        
# 2024-08-01 22:25:18  0.00B 设置环境变量 GPG_KEYS
ENV GPG_KEYS=B215C1633BCA0477615F1B35A5B3A004745C015A 	B3C42148A44E6983B3E4CC0793FA9B1AB75C61B8 	90AA470469D3965A87A5DCB494D03953902C9419 	80F98B2E0DAB6C8281BDF541A7C8C3B2F71EDF1C 	7F74F97C103468EE5D750B583AB00996FC26A641 	33C235A34C46AA3FFB293709A328C3A2C3C45C06 	D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62
                        
# 2024-08-01 22:25:18  6.70MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		abigail-tools 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-01-09 09:14:25  560.01MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; 	apt-get update; 	apt-get install -y --no-install-recommends 		autoconf 		automake 		bzip2 		default-libmysqlclient-dev 		dpkg-dev 		file 		g++ 		gcc 		imagemagick 		libbz2-dev 		libc6-dev 		libcurl4-openssl-dev 		libdb-dev 		libevent-dev 		libffi-dev 		libgdbm-dev 		libglib2.0-dev 		libgmp-dev 		libjpeg-dev 		libkrb5-dev 		liblzma-dev 		libmagickcore-dev 		libmagickwand-dev 		libmaxminddb-dev 		libncurses5-dev 		libncursesw5-dev 		libpng-dev 		libpq-dev 		libreadline-dev 		libsqlite3-dev 		libssl-dev 		libtool 		libwebp-dev 		libxml2-dev 		libxslt-dev 		libyaml-dev 		make 		patch 		unzip 		xz-utils 		zlib1g-dev 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-01-09 09:14:25  183.28MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		git 		mercurial 		openssh-client 		subversion 				procps 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2023-05-11 07:29:59  48.54MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		curl 		gnupg 		netbase 		sq 		wget 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2023-05-11 07:29:59  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2023-05-11 07:29:59  138.85MB 
/bin/sh -c #(nop) ADD file:1df819221542e236e104deb2624ffe4efd79382aed25b3ab20088becaeadad31 in / 
                        
                    

镜像信息

{
    "Id": "sha256:54784777d11fc405f4f898670f3fe6c1002201d446d35c72959075dcea26b2cb",
    "RepoTags": [
        "gcc:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gcc:latest-linuxarm64"
    ],
    "RepoDigests": [
        "gcc@sha256:584e0f62f420087e2d952f78b8da3d1388878382c89de1e2d25d458335ec1fad",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gcc@sha256:a0b8357d00c6ac38807a034933183cc13911ce63f2907d6781a157dd957776e0"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-08-01T14:25:18Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "GPG_KEYS=B215C1633BCA0477615F1B35A5B3A004745C015A \tB3C42148A44E6983B3E4CC0793FA9B1AB75C61B8 \t90AA470469D3965A87A5DCB494D03953902C9419 \t80F98B2E0DAB6C8281BDF541A7C8C3B2F71EDF1C \t7F74F97C103468EE5D750B583AB00996FC26A641 \t33C235A34C46AA3FFB293709A328C3A2C3C45C06 \tD3A93CAD751C2AF4F8C7AD516C35B99309B5FA62",
            "GCC_MIRRORS=https://ftpmirror.gnu.org/gcc \t\thttps://mirrors.kernel.org/gnu/gcc \t\thttps://bigsearcher.com/mirrors/gcc/releases \t\thttp://www.netgull.com/gcc/releases \t\thttps://ftpmirror.gnu.org/gcc \t\thttps://sourceware.org/pub/gcc/releases \t\tftp://ftp.gnu.org/gnu/gcc",
            "GCC_VERSION=14.2.0"
        ],
        "Cmd": [
            "bash"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "arm64",
    "Variant": "v8",
    "Os": "linux",
    "Size": 1386413826,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/8a221f97f3d807bccfd2feef49319a6ffb2122abce3c2113c0027174a96db237/diff:/var/lib/docker/overlay2/f1f554bb0fc358e64d50cef3fc645241d79c05c49671f84bb4c21e2fa904566b/diff:/var/lib/docker/overlay2/dafe09673c6d765603b8aeb7fc70709046c5d02cfc5b7ceb260823527a3f8769/diff:/var/lib/docker/overlay2/e642eb177fcabbac400b9ea95a6b975248f1d5f73c3ffbb4a22707cdc4ac48f0/diff:/var/lib/docker/overlay2/1e8de77ab9a70a51af86a46086f3dd8ce1cefbeed6f8f63c979771c462ac2195/diff:/var/lib/docker/overlay2/0f0f1e987c02844a43e14c813c815de4edc44c1db674899e1f602623b3ace088/diff:/var/lib/docker/overlay2/d5ae1cd71c7d7d4a88260298a27cd594f1d79b5e5176433e47649694a73a9ee1/diff",
            "MergedDir": "/var/lib/docker/overlay2/ac0a55e6bb9df978aac76562ba77fc0320a8740f07c45049f5f5bbf54a712125/merged",
            "UpperDir": "/var/lib/docker/overlay2/ac0a55e6bb9df978aac76562ba77fc0320a8740f07c45049f5f5bbf54a712125/diff",
            "WorkDir": "/var/lib/docker/overlay2/ac0a55e6bb9df978aac76562ba77fc0320a8740f07c45049f5f5bbf54a712125/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:5968baa4566583eecb6c16ca2031a1c44e9dc50f1d947a01e8ac804ee4b539b8",
            "sha256:afc6ebde4174d3aebe07bea4a718d70966fee6b525c8a5fb85e34fba813e4401",
            "sha256:59c47e88439d3e78920575a1f889fcb5b992fff175fb66d66bc66039705e4e1b",
            "sha256:a2b8ce9d73a5336ab77bb69e8248c51ad771e9eb5a63e0b2541b3223e159402c",
            "sha256:275b80b5db61230d74e1fe13da7e6d0e4dd59e27ab11f148a504a181dec40379",
            "sha256:9ae0ac13776cb2d7902402de8537f40339949e64c57893855d9184caabb3ed48",
            "sha256:6c68fb06ecd02d56e190ba181ced7c6c25d969587d2540ec25d65f426bb5e96f",
            "sha256:987b367f0b53604ec04c0c7f531ee647354733249cf48a0daa249741b265cad9"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-04T11:56:55.99087168+08:00"
    }
}

更多版本

docker.io/gcc:13.3

linux/amd64 docker.io1.39GB2024-07-03 15:43
249

docker.io/gcc:14

linux/amd64 docker.io1.42GB2024-08-09 09:10
353

docker.io/gcc:11.2.0-bullseye

linux/amd64 docker.io1.23GB2024-09-30 16:44
162

docker.io/gcc:latest

linux/arm64 docker.io1.39GB2024-11-04 11:58
145

docker.io/gcc:4.8.5

linux/amd64 docker.io1.06GB2025-03-13 15:25
43