docker.io/python:3.7 linux/amd64

docker.io/python:3.7 - 国内下载镜像源 浏览次数:56
🐳 Python Docker Image: .NET Framework 3.5/4.6/5.0 on Ubuntu/Linux
源镜像 docker.io/python:3.7
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.7
镜像ID sha256:16d93ae3411be3db255b6b52fdfc155a0dff0f697c2e4e3d862caf8d978830b2
镜像TAG 3.7
大小 993.93MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD python3
启动入口
工作目录
OS/平台 linux/amd64
浏览量 56 次
贡献者
镜像创建 2023-07-22T10:00:27Z
同步时间 2024-12-30 21:54
更新时间 2025-01-18 02:52
环境变量
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=C.UTF-8 GPG_KEY=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D PYTHON_VERSION=3.7.17 PYTHON_PIP_VERSION=23.0.1 PYTHON_SETUPTOOLS_VERSION=57.5.0 PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/9af82b715db434abb94a0a6f3569f43e72157346/public/get-pip.py PYTHON_GET_PIP_SHA256=45a2bb8bf2bb5eff16fdd00faef6f29731831c7c59bd9fc2bf1f3bed511ff1fe
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.1 扫描引擎: Trivy 扫描时间: 2024-12-30 21:55

低危漏洞:617 中危漏洞:2303 高危漏洞:602 严重漏洞:31

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2023-07-22 18:00:27  0.00B 设置默认要执行的命令
CMD ["python3"]
                        
# 2023-07-22 18:00:27  9.91MB 执行命令并创建新的镜像层
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-07-22 18:00:27  0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=45a2bb8bf2bb5eff16fdd00faef6f29731831c7c59bd9fc2bf1f3bed511ff1fe
                        
# 2023-07-22 18:00:27  0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/9af82b715db434abb94a0a6f3569f43e72157346/public/get-pip.py
                        
# 2023-07-22 18:00:27  0.00B 设置环境变量 PYTHON_SETUPTOOLS_VERSION
ENV PYTHON_SETUPTOOLS_VERSION=57.5.0
                        
# 2023-07-22 18:00:27  0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=23.0.1
                        
# 2023-07-22 18:00:27  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-07-22 18:00:27  36.71MB 执行命令并创建新的镜像层
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)"; 	PROFILE_TASK='-m test.regrtest --pgo 		test_array 		test_base64 		test_binascii 		test_binhex 		test_binop 		test_bytes 		test_c_locale_coercion 		test_class 		test_cmath 		test_codecs 		test_compile 		test_complex 		test_csv 		test_decimal 		test_dict 		test_float 		test_fstring 		test_hashlib 		test_io 		test_iter 		test_json 		test_long 		test_math 		test_memoryview 		test_pickle 		test_re 		test_set 		test_slice 		test_struct 		test_threading 		test_time 		test_traceback 		test_unicode 	'; 	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-07-22 18:00:27  0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.7.17
                        
# 2023-07-22 18:00:27  0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
                        
# 2023-07-22 18:00:27  18.64MB 执行命令并创建新的镜像层
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-07-22 18:00:27  0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
                        
# 2023-07-22 18:00:27  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2023-09-20 17:21:58  587.12MB 
/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-09-20 17:21:02  176.65MB 
/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-09-20 17:20:42  48.40MB 
/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/*
                        
# 2023-09-20 12:55:26  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2023-09-20 12:55:26  116.49MB 
/bin/sh -c #(nop) ADD file:ce04d6a354feaef93795269c859f36667fce9efda23c61b37d7060263b66ed4e in / 
                        
                    

镜像信息

{
    "Id": "sha256:16d93ae3411be3db255b6b52fdfc155a0dff0f697c2e4e3d862caf8d978830b2",
    "RepoTags": [
        "python:3.7",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.7"
    ],
    "RepoDigests": [
        "python@sha256:eedf63967cdb57d8214db38ce21f105003ed4e4d0358f02bedc057341bcf92a0",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python@sha256:2011a37d2a08fe83dd9ff923e0f83bfd7290152e2e6afe359bde1453170d9bdc"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2023-07-22T10:00:27Z",
    "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=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D",
            "PYTHON_VERSION=3.7.17",
            "PYTHON_PIP_VERSION=23.0.1",
            "PYTHON_SETUPTOOLS_VERSION=57.5.0",
            "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/9af82b715db434abb94a0a6f3569f43e72157346/public/get-pip.py",
            "PYTHON_GET_PIP_SHA256=45a2bb8bf2bb5eff16fdd00faef6f29731831c7c59bd9fc2bf1f3bed511ff1fe"
        ],
        "Cmd": [
            "python3"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 993926639,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/9edfb3cdf1b491144641a9b053ec7257260ac6aee9e6aecb46acdc2f4e377a7a/diff:/var/lib/docker/overlay2/4e4f52b8ba526216904ea0f143385d16f1c9726b93e28c24b15b92656fff76b3/diff:/var/lib/docker/overlay2/e3ab9df5c238d9d5a08e3febdf38b12fc4698c7e5a053ddd5a2a3f6d1a22679f/diff:/var/lib/docker/overlay2/46f7aca7f5a5965d8a3b0db8b88529fe96d39a8957324bf0d7eeb8d028dd7b26/diff:/var/lib/docker/overlay2/8659beee8fc477808481d106a050b69d9f35e3062ca54ac6c5f5f2bf3760843b/diff:/var/lib/docker/overlay2/64e1d7d965e7f4946ca087822566bb5d791556eb6628991b0eb0f8f75f06d1d4/diff:/var/lib/docker/overlay2/bd980ec204d37271f689101c8bede43d1e052f9a7f259254c974b4fd7401336d/diff",
            "MergedDir": "/var/lib/docker/overlay2/737a5e51805087b89da3a08d4a09820edb4031cc3861e55a14a12446fe7612b6/merged",
            "UpperDir": "/var/lib/docker/overlay2/737a5e51805087b89da3a08d4a09820edb4031cc3861e55a14a12446fe7612b6/diff",
            "WorkDir": "/var/lib/docker/overlay2/737a5e51805087b89da3a08d4a09820edb4031cc3861e55a14a12446fe7612b6/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:7c85cfa30cb11b7606c0ee84c713a8f6c9faad7cb7ba92f1f33ba36d4731cc82",
            "sha256:f6589095d5b5a4933db1a75edc905d20570c9f6e5dbebd9a7c39a8eef81bb3fd",
            "sha256:a981dddd4c650efa96d82013fba1d1189cf4648cd1e766b34120b32af9ce8a06",
            "sha256:01d6cdeac53917b874d5adac862ab90dcf22489b7914611a1bde7c84db0a99ae",
            "sha256:c26432533a6af2f6f59d50aba5f76f2b61c2e0088c7e01b5d2a8708b6cb9ef08",
            "sha256:aef22e07d5d7e259dca961a8e2587143dd9f0a6edc05c549af574031343372f4",
            "sha256:8e23f007f16f45451f325eb7d3f8e8d3bb5f355c4f8b12eb1e9392dc10d8da33",
            "sha256:45c430b35dba6c7aae97d666bb8a2edf6d6059e14cbe5a3b44118d6f4ca2221e"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-30T21:54:01.006173326+08:00"
    }
}

更多版本

docker.io/python:3.11.9-alpine3.18

linux/amd64 docker.io52.26MB2024-04-07 14:41
632

docker.io/python:3.10-alpine3.20

linux/amd64 docker.io55.68MB2024-06-19 11:04
667

docker.io/python:alpine3.20

linux/arm64 docker.io57.22MB2024-06-21 18:46
583

docker.io/python:3.11-slim-bookworm

linux/amd64 docker.io130.78MB2024-06-24 13:15
717

docker.io/python:3.12-alpine

linux/arm64 docker.io57.22MB2024-06-28 11:33
596

docker.io/python:3.12.4-alpine

linux/arm64 docker.io57.22MB2024-06-28 11:39
535

docker.io/python:3.9-alpine

linux/amd64 docker.io48.00MB2024-06-29 09:52
790

docker.io/python:3.12-slim

linux/amd64 docker.io129.50MB2024-07-09 16:34
1176

docker.io/python:3.10.14

linux/amd64 docker.io1.00GB2024-07-12 11:36
803

docker.io/python:3-slim

linux/amd64 docker.io129.50MB2024-07-16 13:54
286

docker.io/python:3.12

linux/amd64 docker.io1.02GB2024-07-24 19:53
927

docker.io/python:3.9-slim

linux/amd64 docker.io125.32MB2024-08-05 17:37
1592

docker.io/python:3.9-slim-bookworm

linux/amd64 docker.io125.32MB2024-08-11 16:38
287

docker.io/python:3.11

linux/amd64 docker.io1.01GB2024-08-12 12:30
650

docker.io/python:3.11.9

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

docker.io/python:3.11-slim

linux/amd64 docker.io129.91MB2024-08-15 16:05
962

docker.io/python:3.12.5-slim-bullseye

linux/amd64 docker.io128.56MB2024-08-27 13:31
244

docker.io/python:3.12.5-bullseye

linux/amd64 docker.io932.81MB2024-08-27 13:34
182

docker.io/python:3.11.9-slim-bullseye

linux/amd64 docker.io127.34MB2024-08-27 14:30
269

docker.io/python:3.12.5-bookworm

linux/amd64 docker.io1.02GB2024-08-28 13:39
189

docker.io/python:3.10.14-bookworm

linux/amd64 docker.io1.00GB2024-08-28 17:01
179

docker.io/python:2.7

linux/amd64 docker.io901.78MB2024-09-03 12:46
298

docker.io/python:3.10.11-slim-buster

linux/arm64 docker.io111.38MB2024-09-03 17:57
276

docker.io/python:3.6.15-alpine

linux/amd64 docker.io40.67MB2024-09-24 16:50
229

docker.io/python:3.11.10-bookworm

linux/amd64 docker.io1.01GB2024-09-29 18:03
251

docker.io/python:3.10-slim

linux/amd64 docker.io126.97MB2024-10-11 11:54
503

docker.io/python:3.9

linux/amd64 docker.io996.67MB2024-10-11 16:02
334

docker.io/python:3.13.0

linux/amd64 docker.io1.02GB2024-10-12 13:46
296

docker.io/python:3.9.16-bullseye

linux/amd64 docker.io906.48MB2024-10-14 20:15
168

docker.io/python:3.9.16-slim-bullseye

linux/amd64 docker.io124.14MB2024-10-14 21:18
163

docker.io/python:3.8.16-slim-buster

linux/amd64 docker.io116.19MB2024-10-17 08:54
147

docker.io/python:3.13.0-slim-bullseye

linux/amd64 docker.io120.18MB2024-10-17 14:13
339

docker.io/python:3.11.1

linux/amd64 docker.io924.72MB2024-10-23 10:03
124

docker.io/python:3.10-slim-bookworm

linux/amd64 docker.io127.17MB2024-10-23 13:49
253

docker.io/python:2.7.18

linux/arm64 docker.io847.21MB2024-10-29 17:30
137

docker.io/python:3.10.15-bullseye

linux/amd64 docker.io914.55MB2024-10-31 15:42
136

docker.io/python:3.10.15-bookworm

linux/amd64 docker.io1.00GB2024-10-31 15:47
270

docker.io/python:3.7.17

linux/amd64 docker.io993.93MB2024-11-05 14:12
114

docker.io/python:3.8-slim

linux/amd64 docker.io124.73MB2024-11-05 19:26
128

docker.io/python:3.6.11

linux/arm64 docker.io819.35MB2024-11-11 16:34
68

docker.io/python:3.6.12

linux/arm64 docker.io820.25MB2024-11-11 17:09
72

docker.io/python:3.6.11

linux/arm docker.io684.65MB2024-11-11 17:37
62

docker.io/python:3.10-slim-bookworm

linux/arm64 docker.io152.67MB2024-11-14 15:15
106

docker.io/python:3.13-slim

linux/amd64 docker.io120.78MB2024-11-14 18:04
129

docker.io/python:3.12.7-alpine

linux/amd64 docker.io53.72MB2024-11-15 13:32
99

docker.io/python:3.12.7-slim

linux/amd64 docker.io124.31MB2024-11-15 14:03
128

docker.io/python:3.11.8-slim

linux/amd64 docker.io130.69MB2024-11-25 15:53
86

docker.io/python:3.11.8-alpine3.18

linux/amd64 docker.io52.27MB2024-11-25 17:06
66

docker.io/python:3.9-slim

linux/arm64 docker.io151.11MB2024-11-26 10:33
125

docker.io/python:3.12-slim-bookworm

linux/amd64 docker.io124.31MB2024-11-26 11:57
102

docker.io/python:3.7.5

linux/amd64 docker.io917.33MB2024-12-10 14:03
80

docker.io/python:3.11.10-slim-bullseye

linux/amd64 docker.io126.51MB2024-12-11 14:13
75

docker.io/python:3.11-slim-buster

linux/amd64 docker.io120.41MB2024-12-11 15:01
74

docker.io/python:3.11.10

linux/amd64 docker.io1.01GB2024-12-11 16:02
84

docker.io/python:3.11.10-slim-bookworm

linux/amd64 docker.io129.09MB2024-12-11 16:04
79

docker.io/python:3.10-alpine

linux/amd64 docker.io51.07MB2024-12-17 15:34
66

docker.io/python:3.10.12

linux/amd64 docker.io1.00GB2024-12-27 22:10
59

docker.io/python:3.10.12

linux/arm64 docker.io1.01GB2024-12-27 22:13
58

docker.io/python:3.7

linux/amd64 docker.io993.93MB2024-12-30 21:54
55

docker.io/python:3.9-alpine

linux/arm64 docker.io53.57MB2025-01-07 20:57
33

docker.io/python:3.9.19

linux/amd64 docker.io995.95MB2025-01-08 16:44
38

docker.io/python:3.9.19

linux/arm64 docker.io1.00GB2025-01-08 16:52
33

docker.io/python:3.9.19-alpine

linux/amd64 docker.io47.70MB2025-01-08 19:46
30

docker.io/python:3.9.19-alpine

linux/arm64 docker.io53.17MB2025-01-08 19:48
28

docker.io/python:3.10.16-slim

linux/amd64 docker.io127.19MB2025-01-15 03:44
34

docker.io/python:3.12.8-bullseye

linux/amd64 docker.io930.07MB2025-01-16 17:56
20