docker.io/library/python:3.10-alpine linux/amd64

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

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

源镜像 docker.io/library/python:3.10-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.10-alpine
镜像ID sha256:2a80925da4cee73f146fcad502168a78f3d8871c2cf2f23a3de9280a4c4a3baf
镜像TAG 3.10-alpine
大小 51.13MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD python3
启动入口
工作目录 /
OS/平台 linux/amd64
浏览量 21 次
贡献者
镜像创建 2024-12-05T13:19:52Z
同步时间 2025-04-02 18:46
更新时间 2025-04-03 16:23
环境变量
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.10.16 PYTHON_SHA256=bfb249609990220491a1b92850a07135ed0831e41738cf681d63cf01b2a8fbd1

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-12-05 21:19:52  0.00B 设置默认要执行的命令
CMD ["python3"]
                        
# 2024-12-05 21:19:52  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-12-05 21:19:52  42.29MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		apk add --no-cache --virtual .build-deps 		gnupg 		tar 		xz 				bluez-dev 		bzip2-dev 		dpkg-dev dpkg 		findutils 		gcc 		gdbm-dev 		libc-dev 		libffi-dev 		libnsl-dev 		libtirpc-dev 		linux-headers 		make 		ncurses-dev 		openssl-dev 		pax-utils 		readline-dev 		sqlite-dev 		tcl-dev 		tk 		tk-dev 		util-linux-dev 		xz-dev 		zlib-dev 	; 		wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; 	echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; 	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-option-checking=fatal 		--enable-shared 		--with-lto 		--with-ensurepip 	; 	nproc="$(nproc)"; 	EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; 	LDFLAGS="${LDFLAGS:--Wl},--strip-all"; 	make -j "$nproc" 		"EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" 		"LDFLAGS=${LDFLAGS:-}" 	; 	rm python; 	make -j "$nproc" 		"EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" 		"LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" 		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' \) \) 		\) -exec rm -rf '{}' + 	; 		find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' 		| tr ',' '\n' 		| sort -u 		| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' 		| xargs -rt apk add --no-network --virtual .python-rundeps 	; 	apk del --no-network .build-deps; 		export PYTHONDONTWRITEBYTECODE=1; 	python3 --version; 		pip3 install 		--disable-pip-version-check 		--no-cache-dir 		--no-compile 		'setuptools==65.5.1' 		wheel 	; 	pip3 --version # buildkit
                        
# 2024-12-05 21:19:52  0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=bfb249609990220491a1b92850a07135ed0831e41738cf681d63cf01b2a8fbd1
                        
# 2024-12-05 21:19:52  0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.10.16
                        
# 2024-12-05 21:19:52  0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
                        
# 2024-12-05 21:19:52  1.01MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apk add --no-cache 		ca-certificates 		tzdata 	; # buildkit
                        
# 2024-12-05 21:19:52  0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
                        
# 2024-12-05 21:19:52  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-12-05 21:19:52  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2024-12-05 21:19:52  7.83MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.3-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:2a80925da4cee73f146fcad502168a78f3d8871c2cf2f23a3de9280a4c4a3baf",
    "RepoTags": [
        "python:3.10-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python:3.10-alpine"
    ],
    "RepoDigests": [
        "python@sha256:4c4097e46608e9b9025a486e3b72d628ac8947a3caa20f142c2e8c0029a12b21",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/python@sha256:317a94e6bcbe46380907241a0167921bf9dde40a1f64b74b4932cf05c9dd4dfc"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-12-05T13:19:52Z",
    "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.10.16",
            "PYTHON_SHA256=bfb249609990220491a1b92850a07135ed0831e41738cf681d63cf01b2a8fbd1"
        ],
        "Cmd": [
            "python3"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 51129048,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/9d5a88479c0520222f66d5ea038a88ed0afdd5b3fe882d08448a83648b95bb52/diff:/var/lib/docker/overlay2/5d61065b0a064dc18daa4e7ef15e9fb8ece099c43dccabaff1d31bec8ef80cf7/diff:/var/lib/docker/overlay2/4e8c80c1de56b91b667718f35bdead0b4c91a2fdafbfe97c3c57654b169634d9/diff",
            "MergedDir": "/var/lib/docker/overlay2/1c8b52a2e60320344f99f3a93a5ba7fa95f1b291298da6ff112adece550a12cd/merged",
            "UpperDir": "/var/lib/docker/overlay2/1c8b52a2e60320344f99f3a93a5ba7fa95f1b291298da6ff112adece550a12cd/diff",
            "WorkDir": "/var/lib/docker/overlay2/1c8b52a2e60320344f99f3a93a5ba7fa95f1b291298da6ff112adece550a12cd/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:08000c18d16dadf9553d747a58cf44023423a9ab010aab96cf263d2216b8b350",
            "sha256:33aa9ac846a2aaae1d66a79026748adca664d41ff9aaf2b4134aa31f2862932d",
            "sha256:b81355769f94ad56b4be5f3a747462e5e2c3aea0a8dadbb850424f41557ed2f3",
            "sha256:46e2c5c43c285386f009cec79485a59f88433129048f7d230891896169106007"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-04-02T18:46:29.211889911+08:00"
    }
}

更多版本

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

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

docker.io/library/python:3.6

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

docker.io/library/python:3.8.2

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

docker.io/library/python:3.10.14-bookworm

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

docker.io/library/python:3.10

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

docker.io/library/python:3.6-slim

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

docker.io/library/python:3.8

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

docker.io/library/python:3.8.19

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

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

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

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

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

docker.io/library/python:3.10-slim

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

docker.io/library/python:3-alpine

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

docker.io/library/python:3.11.8-bookworm

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

docker.io/library/python:3.8-buster

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

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

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

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

linux/amd64 docker.io122.54MB2025-02-05 17:45
101

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

linux/amd64 docker.io127.19MB2025-02-06 10:41
115

docker.io/library/python:3.7-alpine

linux/amd64 docker.io46.61MB2025-02-10 10:47
73

docker.io/library/python:3.12

linux/amd64 docker.io1.02GB2025-02-15 15:00
140

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

linux/arm64 docker.io51.90MB2025-03-05 10:12
61

docker.io/library/python:3.7-slim

linux/arm64 docker.io151.00MB2025-03-06 11:44
80

docker.io/library/python:3.7-alpine

linux/arm64 docker.io51.90MB2025-03-06 11:48
58

docker.io/library/python:3.8

linux/arm64 docker.io1.00GB2025-03-14 15:12
56

docker.io/library/python:3.10

linux/arm64 docker.io1.01GB2025-03-24 09:00
41

docker.io/library/python:3.10-alpine

linux/amd64 docker.io51.13MB2025-04-02 18:46
20