docker.io/library/python:3.11.8-bookworm linux/amd64

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

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

源镜像 docker.io/library/python:3.11.8-bookworm
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.11.8-bookworm
镜像ID sha256:70ad452f26215b1fc5d0c3e136ed8e2c976218eb906b873e5b53b73e393539d2
镜像TAG 3.11.8-bookworm
大小 1.01GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD python3
启动入口
工作目录
OS/平台 linux/amd64
浏览量 65 次
贡献者 97******2@qq.com
镜像创建 2024-03-21T23:32:08Z
同步时间 2024-12-08 14:12
更新时间 2025-01-17 15:17
环境变量
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=C.UTF-8 GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D PYTHON_VERSION=3.11.8 PYTHON_PIP_VERSION=24.0 PYTHON_SETUPTOOLS_VERSION=65.5.1 PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.5 扫描引擎: Trivy 扫描时间: 2024-12-08 14:14

低危漏洞:594 中危漏洞:1756 高危漏洞:443 严重漏洞:24

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-03-22 07:32:08  0.00B 设置默认要执行的命令
CMD ["python3"]
                        
# 2024-03-22 07:32:08  11.22MB 执行命令并创建新的镜像层
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
                        
# 2024-03-22 07:32:08  0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9
                        
# 2024-03-22 07:32:08  0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py
                        
# 2024-03-22 07:32:08  0.00B 设置环境变量 PYTHON_SETUPTOOLS_VERSION
ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
                        
# 2024-03-22 07:32:08  0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=24.0
                        
# 2024-03-22 07:32:08  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
                        
# 2024-03-22 07:32:08  50.20MB 执行命令并创建新的镜像层
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-lto 		--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' \) \) 		\) -exec rm -rf '{}' + 	; 		ldconfig; 		python3 --version # buildkit
                        
# 2024-03-22 07:32:08  0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.8
                        
# 2024-03-22 07:32:08  0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
                        
# 2024-03-22 07:32:08  18.65MB 执行命令并创建新的镜像层
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
                        
# 2024-03-22 07:32:08  0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
                        
# 2024-03-22 07:32:08  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-03-12 13:54:33  587.25MB 
/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/*
                        
# 2024-03-12 13:53:34  176.67MB 
/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/*
                        
# 2024-03-12 13:53:14  48.44MB 
/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/*
                        
# 2024-03-12 09:20:46  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2024-03-12 09:20:46  116.50MB 
/bin/sh -c #(nop) ADD file:b18b4c32dd8042f45097997c732dc29b3917fd7d5f337f9e772eee5875fbe6f1 in / 
                        
                    

镜像信息

{
    "Id": "sha256:70ad452f26215b1fc5d0c3e136ed8e2c976218eb906b873e5b53b73e393539d2",
    "RepoTags": [
        "python:3.11.8-bookworm",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.11.8-bookworm"
    ],
    "RepoDigests": [
        "python@sha256:e2ed446c899827ed992f8a5a8875fa0853fcab32581e61418b650322061aa3c4",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python@sha256:dde3796db6d2436a0cda34c64b78d748d20f9a593370d45a65db75311752b36e"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-03-21T23:32:08Z",
    "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=A035C8C19219BA821ECEA86B64E628F8D684696D",
            "PYTHON_VERSION=3.11.8",
            "PYTHON_PIP_VERSION=24.0",
            "PYTHON_SETUPTOOLS_VERSION=65.5.1",
            "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py",
            "PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9"
        ],
        "Cmd": [
            "python3"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 1008932920,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/db0a689b05e95b451468e1eb72d665b8a70efc5fb96419405500c0c5d32e955b/diff:/var/lib/docker/overlay2/0107f97d9de577f87f20ba1c459cbeb355f66e6ade7ac8e7cdc91493a7f16880/diff:/var/lib/docker/overlay2/77d0806d7f04d6020b55b48a3e168643c3c5d3fc0952428fa5169c05a82af2f9/diff:/var/lib/docker/overlay2/b35ac66ff52d37a10d798fabd0f87267372e5b797cb3069fbe911c6c89b89358/diff:/var/lib/docker/overlay2/c9f496ecc034a28a043b7d7653d8b2e50f9e64d71294e46d7a18276b14b258b8/diff:/var/lib/docker/overlay2/6e1bf012a050b02711a448f1019a0608274fa34ccdb2218836ebdacc36cc5f6d/diff:/var/lib/docker/overlay2/c8d16a8211fecdae28ef1d7f8f4fad6922f1d8a4adceffcca18d70535f3efffe/diff",
            "MergedDir": "/var/lib/docker/overlay2/1a5c5fa119ea90f30efec50c252fb70e21f06dd64aff4f3256e08851080afa69/merged",
            "UpperDir": "/var/lib/docker/overlay2/1a5c5fa119ea90f30efec50c252fb70e21f06dd64aff4f3256e08851080afa69/diff",
            "WorkDir": "/var/lib/docker/overlay2/1a5c5fa119ea90f30efec50c252fb70e21f06dd64aff4f3256e08851080afa69/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:0238a17903242951b944d01ab189a30ac237c715121f14565a2af8b078415d97",
            "sha256:e6e2ab10dba67b21c5c2fda03454220744e6bed4426fb10c1abec8da3c49b277",
            "sha256:68866beb2ed2bd999ba5ffc06da182d78f1d62c7fdafad2885e8a9718ee9e8f4",
            "sha256:21e1c4948146900bda6b5e35792de158dfcf93c0f985130c7c20cd39b92aa9c7",
            "sha256:e077e19b6682f90b0941bc0c1453ea4834823e474a07b95cb0bac2ec1499f55a",
            "sha256:f15fdf458e9490ee4d04f4563d4ac46f7062ab14eb6bdffec0e88df6b6928398",
            "sha256:18c5ef34ce7e8aa16c3a36bed3753ea9a8247da8882131b4bab6339a57d4b1a6",
            "sha256:d597aa21049367d58fff14186c41d474afbdb71330ee7241f00cd1111f0faead"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-08T14:12:31.188489083+08:00"
    }
}

更多版本

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

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

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
135

docker.io/library/python:3.11.8-bookworm

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

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
55