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

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

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

源镜像 docker.io/library/python:3.8-slim-bookworm
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.8-slim-bookworm
镜像ID sha256:b5f62925bd0f63f48cc8acd5e87d0c3a07e2f229cd2fb0a9586e68ed17f45ee3
镜像TAG 3.8-slim-bookworm
大小 124.73MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD python3
启动入口
工作目录
OS/平台 linux/amd64
浏览量 56 次
贡献者
镜像创建 2024-09-09T17:16:05Z
同步时间 2024-12-23 12:34
更新时间 2025-01-18 05:40
环境变量
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.20
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.7 扫描引擎: Trivy 扫描时间: 2024-12-23 12:35

低危漏洞:72 中危漏洞:19 高危漏洞:9 严重漏洞:1

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

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

Containerd拉取命令

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

Shell快速替换命令

sed -i 's#library/python:3.8-slim-bookworm#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.8-slim-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.8-slim-bookworm && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.8-slim-bookworm  docker.io/library/python:3.8-slim-bookworm'

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-09-10 01:16:05  0.00B 设置默认要执行的命令
CMD ["python3"]
                        
# 2024-09-10 01:16:05  36.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	for src in idle3 pip3 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-09-10 01:16:05  40.71MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends 		dpkg-dev 		gcc 		gnupg 		libbluetooth-dev 		libbz2-dev 		libc6-dev 		libdb-dev 		libexpat1-dev 		libffi-dev 		libgdbm-dev 		liblzma-dev 		libncursesw5-dev 		libreadline-dev 		libsqlite3-dev 		libssl-dev 		make 		tk-dev 		uuid-dev 		wget 		xz-utils 		zlib1g-dev 	; 		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 		--with-ensurepip 	; 	nproc="$(nproc)"; 	EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; 	LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; 	LDFLAGS="${LDFLAGS:--Wl},--strip-all"; 	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; 		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; 		apt-mark auto '.*' > /dev/null; 	apt-mark manual $savedAptMark; 	find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' 		| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' 		| sort -u 		| xargs -r dpkg-query --search 		| cut -d: -f1 		| sort -u 		| xargs -r apt-mark manual 	; 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; 	rm -rf /var/lib/apt/lists/*; 		export PYTHONDONTWRITEBYTECODE=1; 	python3 --version; 		pip3 install 		--disable-pip-version-check 		--no-cache-dir 		--no-compile 		'setuptools==57.5.0' 		wheel 	; 	pip3 --version # buildkit
                        
# 2024-09-10 01:16:05  0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.8.20
                        
# 2024-09-10 01:16:05  0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568
                        
# 2024-09-10 01:16:05  9.24MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		netbase 		tzdata 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-09-10 01:16:05  0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
                        
# 2024-09-10 01:16:05  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-09-10 01:16:05  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2024-09-10 01:16:05  74.78MB 
/bin/sh -c #(nop) ADD file:a9a95cfab16803be03e59ade41622ef5061cf90f2d034304fe4ac1ee9ff30389 in / 
                        
                    

镜像信息

{
    "Id": "sha256:b5f62925bd0f63f48cc8acd5e87d0c3a07e2f229cd2fb0a9586e68ed17f45ee3",
    "RepoTags": [
        "python:3.8-slim-bookworm",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.8-slim-bookworm"
    ],
    "RepoDigests": [
        "python@sha256:1d52838af602b4b5a831beb13a0e4d073280665ea7be7f69ce2382f29c5a613f",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python@sha256:6770f44c55b848fb8c975a56c30e8fbaef1f070169267582deb6be7540ee9b62"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-09-09T17:16:05Z",
    "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.20"
        ],
        "Cmd": [
            "python3"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 124726021,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/53abb454d881a8ea13372a8ca39e8503462cf2fdc125990c098e53f4084a1f15/diff:/var/lib/docker/overlay2/ec026654515a5127730a9274019c1f93464c4feb5ab9fa110891d4e430d98dc0/diff:/var/lib/docker/overlay2/1bccca92078a7af8b31c9945ce2f68029d684347892dd2e49c5a3b836eef3b8c/diff",
            "MergedDir": "/var/lib/docker/overlay2/2b0752019510ec498fba47febf972aa474412b7e5f3c0eea977c9627aa223dc0/merged",
            "UpperDir": "/var/lib/docker/overlay2/2b0752019510ec498fba47febf972aa474412b7e5f3c0eea977c9627aa223dc0/diff",
            "WorkDir": "/var/lib/docker/overlay2/2b0752019510ec498fba47febf972aa474412b7e5f3c0eea977c9627aa223dc0/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:8d853c8add5d1e7b0aafc4b68a3d9fb8e7a0da27970c2acf831fe63be4a0cd2c",
            "sha256:c3772b569c3aabd505e4912b639df012470be249526cc4be60f85fe088845f8a",
            "sha256:5d2d143f3d7f71a716eed0f9fc1581a5d946ebdc7a132390d16628dc4c14a65c",
            "sha256:d2a2207b52a4685a5b9331277b784a49c325fa410b61f6c12f62a6b195a85806"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-23T12:34:04.318503625+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
55