docker.io/library/python:3.8-buster linux/amd64

docker.io/library/python:3.8-buster - 国内下载镜像源 浏览次数:76 安全受验证的发布者-Docker
根据 Docker Hub 上的信息,`docker.io/library/python` 镜像的描述是:

Python 是一种高级语言,可以用来编写各种应用程序、脚本和工具。这个镜像提供了 Python 3.x 的主要版本,可以在其中安装各种库和框架,例如 NumPy、pandas 和 Flask 等。

源镜像 docker.io/library/python:3.8-buster
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.8-buster
镜像ID sha256:406c7153026b3565d5558f11c84fb77dff1f2a045c2e9b05dac78a8416050db7
镜像TAG 3.8-buster
大小 880.47MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD python3
启动入口
工作目录
OS/平台 linux/amd64
浏览量 76 次
贡献者
镜像创建 2023-06-06T15:50:21Z
同步时间 2024-12-12 11:23
更新时间 2025-01-18 01:35
环境变量
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=C.UTF-8 GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568 PYTHON_VERSION=3.8.17 PYTHON_PIP_VERSION=23.0.1 PYTHON_SETUPTOOLS_VERSION=57.5.0 PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/0d8570dc44796f4369b652222cf176b3db6ac70e/public/get-pip.py PYTHON_GET_PIP_SHA256=96461deced5c2a487ddc65207ec5a9cffeca0d34e7af7ea1afc470ff0d746207
镜像安全扫描 查看Trivy扫描报告

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

低危漏洞:1203 中危漏洞:2534 高危漏洞:828 严重漏洞:32

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.8-buster
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.8-buster  docker.io/library/python:3.8-buster

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.8-buster
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.8-buster  docker.io/library/python:3.8-buster

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2023-06-06 23:50:21  0.00B 设置默认要执行的命令
CMD ["python3"]
                        
# 2023-06-06 23:50:21  9.90MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		wget -O get-pip.py "$PYTHON_GET_PIP_URL"; 	echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; 		export PYTHONDONTWRITEBYTECODE=1; 		python get-pip.py 		--disable-pip-version-check 		--no-cache-dir 		--no-compile 		"pip==$PYTHON_PIP_VERSION" 		"setuptools==$PYTHON_SETUPTOOLS_VERSION" 	; 	rm -f get-pip.py; 		pip --version # buildkit
                        
# 2023-06-06 23:50:21  0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=96461deced5c2a487ddc65207ec5a9cffeca0d34e7af7ea1afc470ff0d746207
                        
# 2023-06-06 23:50:21  0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/0d8570dc44796f4369b652222cf176b3db6ac70e/public/get-pip.py
                        
# 2023-06-06 23:50:21  0.00B 设置环境变量 PYTHON_SETUPTOOLS_VERSION
ENV PYTHON_SETUPTOOLS_VERSION=57.5.0
                        
# 2023-06-06 23:50:21  0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=23.0.1
                        
# 2023-06-06 23:50:21  32.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	for src in idle3 pydoc3 python3 python3-config; do 		dst="$(echo "$src" | tr -d 3)"; 		[ -s "/usr/local/bin/$src" ]; 		[ ! -e "/usr/local/bin/$dst" ]; 		ln -svT "$src" "/usr/local/bin/$dst"; 	done # buildkit
                        
# 2023-06-06 23:50:21  50.28MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; 	wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; 	GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; 	gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; 	gpg --batch --verify python.tar.xz.asc python.tar.xz; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME" python.tar.xz.asc; 	mkdir -p /usr/src/python; 	tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; 	rm python.tar.xz; 		cd /usr/src/python; 	gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; 	./configure 		--build="$gnuArch" 		--enable-loadable-sqlite-extensions 		--enable-optimizations 		--enable-option-checking=fatal 		--enable-shared 		--with-system-expat 		--without-ensurepip 	; 	nproc="$(nproc)"; 	EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; 	LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; 	make -j "$nproc" 		"EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" 		"LDFLAGS=${LDFLAGS:-}" 		"PROFILE_TASK=${PROFILE_TASK:-}" 	; 	rm python; 	make -j "$nproc" 		"EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" 		"LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" 		"PROFILE_TASK=${PROFILE_TASK:-}" 		python 	; 	make install; 		bin="$(readlink -ve /usr/local/bin/python3)"; 	dir="$(dirname "$bin")"; 	mkdir -p "/usr/share/gdb/auto-load/$dir"; 	cp -vL Tools/gdb/libpython.py "/usr/share/gdb/auto-load/$bin-gdb.py"; 		cd /; 	rm -rf /usr/src/python; 		find /usr/local -depth 		\( 			\( -type d -a \( -name test -o -name tests -o -name idle_test \) \) 			-o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) 			-o \( -type f -a -name 'wininst-*.exe' \) 		\) -exec rm -rf '{}' + 	; 		ldconfig; 		python3 --version # buildkit
                        
# 2023-06-06 23:50:21  0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.8.17
                        
# 2023-06-06 23:50:21  0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568
                        
# 2023-06-06 23:50:21  17.96MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		libbluetooth-dev 		tk-dev 		uuid-dev 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2023-06-06 23:50:21  0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
                        
# 2023-06-06 23:50:21  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2023-06-13 11:33:41  509.55MB 
/bin/sh -c set -ex; 	apt-get update; 	apt-get install -y --no-install-recommends 		autoconf 		automake 		bzip2 		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 				$( 			if apt-cache show 'default-libmysqlclient-dev' 2>/dev/null | grep -q '^Version:'; then 				echo 'default-libmysqlclient-dev'; 			else 				echo 'libmysqlclient-dev'; 			fi 		) 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2023-06-13 11:31:54  145.61MB 
/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-06-13 11:31:27  33.03MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		curl 		gnupg 		netbase 		wget 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2023-06-13 07:21:19  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2023-06-13 07:21:19  114.12MB 
/bin/sh -c #(nop) ADD file:54838b3dbf7839dadd0b29835bbe53ecbfdfde657ef8671ec5ac3cf5867ea069 in / 
                        
                    

镜像信息

{
    "Id": "sha256:406c7153026b3565d5558f11c84fb77dff1f2a045c2e9b05dac78a8416050db7",
    "RepoTags": [
        "python:3.8-buster",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.8-buster"
    ],
    "RepoDigests": [
        "python@sha256:04c3f641c2254c229fd2f704c5199ff4bea57d26c1c29008ae3a4afddde98709",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python@sha256:bc4b9fb034a871b285bea5418cedfcaa9d2ab5590fb5fb6f0c42aaebb2e2c911"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2023-06-06T15:50:21Z",
    "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/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "LANG=C.UTF-8",
            "GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568",
            "PYTHON_VERSION=3.8.17",
            "PYTHON_PIP_VERSION=23.0.1",
            "PYTHON_SETUPTOOLS_VERSION=57.5.0",
            "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/0d8570dc44796f4369b652222cf176b3db6ac70e/public/get-pip.py",
            "PYTHON_GET_PIP_SHA256=96461deced5c2a487ddc65207ec5a9cffeca0d34e7af7ea1afc470ff0d746207"
        ],
        "Cmd": [
            "python3"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 880466035,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/5fe6067f30b505c1bc477a07542145500c8eca8d941c280cb9873f944770a5f3/diff:/var/lib/docker/overlay2/0af8b63ba1060121bae9304233fa9cc8c0711401f215474374b859b20e502438/diff:/var/lib/docker/overlay2/abe77ce670796dad17ad3dea92d1bb777e6ec52115dd2312b413cc5fe54cd6ac/diff:/var/lib/docker/overlay2/82f8cdfba86b32a4718a0590ff79cae2ded06d9347b88a16aacaf8417e1270a8/diff:/var/lib/docker/overlay2/2c3dcffc7f712c65b1763b182530c27ea5b2c800a24f3a0a9a9a3648486d8663/diff:/var/lib/docker/overlay2/0f119571589314956d1e3d0afe359e2d7fe8ce5e09872fbd5bff735eee1f174d/diff:/var/lib/docker/overlay2/ef543849df678946d44495cc99e27c52d0a90de27b76a9511eb226d00662dbd0/diff",
            "MergedDir": "/var/lib/docker/overlay2/50a856239f805fb1cf2b34782e3848c4ca53bdb67a056870dbd50fb7f3d812c3/merged",
            "UpperDir": "/var/lib/docker/overlay2/50a856239f805fb1cf2b34782e3848c4ca53bdb67a056870dbd50fb7f3d812c3/diff",
            "WorkDir": "/var/lib/docker/overlay2/50a856239f805fb1cf2b34782e3848c4ca53bdb67a056870dbd50fb7f3d812c3/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:6af7a54a0a0dc3d3b622e2ffb19b80c55b3e29b07857efb3d818517cad416e3b",
            "sha256:53d40515380c2dce4348df0565356261e1795bd9c68f0263fa14d0bdbf52521d",
            "sha256:eccb9ed74974c6ffbb0ffe29805839db91d2b4f4e2cdc61ee70650d6210e7fbd",
            "sha256:dcc1cfeee1ab24b1736806348df7db43070fe755d6912cba38ce80340585ec16",
            "sha256:474c7af106972488141362c55112a7419898074e526ebc62cba9de91fbac75f8",
            "sha256:ad312497d9a5fd411bb7e2b3226502a618fda2e20ad0f3764452e292dd849577",
            "sha256:45359261cd7ae5fad5a8b3795efd4f9fdf15e242fa541d322a4a81971d3a3726",
            "sha256:6e2f63b0cf0572b4329fd82cc80530017246a6c7c9b2e34ddffbee691e9ffa9f"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-12T11:23:00.509922205+08:00"
    }
}

更多版本

docker.io/library/python:3.10-slim-bullseye

linux/amd64 docker.io125.60MB2024-06-12 23:34
1925

docker.io/library/python:3.6

linux/amd64 docker.io901.66MB2024-06-16 16:51
421

docker.io/library/python:3.8.2

linux/amd64 docker.io933.54MB2024-06-18 10:23
397

docker.io/library/python:3.10.14-bookworm

linux/amd64 docker.io1.00GB2024-07-05 08:55
424

docker.io/library/python:3.10

linux/amd64 docker.io1.00GB2024-07-24 15:49
1387

docker.io/library/python:3.6-slim

linux/amd64 docker.io119.19MB2024-07-30 21:11
276

docker.io/library/python:3.8

linux/amd64 docker.io994.56MB2024-08-09 12:05
857

docker.io/library/python:3.8.19

linux/amd64 docker.io994.66MB2024-09-23 20:29
214

docker.io/library/python:3.8.20-alpine3.19

linux/amd64 docker.io47.66MB2024-10-09 11:25
216

docker.io/library/python:3.7.17-alpine3.18

linux/amd64 docker.io46.61MB2024-10-11 14:25
154

docker.io/library/python:3.10-slim

linux/arm64 docker.io152.87MB2024-10-14 14:11
299

docker.io/library/python:3-alpine

linux/amd64 docker.io50.29MB2024-11-20 16:15
136

docker.io/library/python:3.11.8-bookworm

linux/amd64 docker.io1.01GB2024-12-08 14:12
65

docker.io/library/python:3.8-buster

linux/amd64 docker.io880.47MB2024-12-12 11:23
75

docker.io/library/python:3.8-slim-bookworm

linux/amd64 docker.io124.73MB2024-12-23 12:34
56