ubuntu/pythonCurrent Python Docker Image from Canonical, based on Ubuntu. Receives security updates and rolls to newer Python or Ubuntu release. This repository is free to use and exempt from per-user rate limits.
Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Python is dynamically typed and garbage-collected. It supports multiple programming paradigms, including structured, object-oriented and functional programming. Read more on python.org.
This image is a ***led Ubuntu rock that contains only the Python runtime and its standard libraries. It is production-ready and can also be used as a base if additional application dependencies are needed.
!LTS Up to 5 years of free security maintenance on LTS channels.
!ESM Up to 10 years of customer security maintenance from Canonical's restricted repositories.
| Channel Tags | Supported until | Currently | Architectures | |
|---|---|---|---|---|
3.13-25.10_stable | 3.13-25.10, 3.13-25.10_beta, 3.13-25.10_candidate, 3.13-25.10_edge | 07/2026 | Python 3.13 on Ubuntu 25.10 | amd64, arm64 |
3.12-24.04_stable | 3.12-24.04, 3.12-24.04_beta, 3.12-24.04_candidate, 3.12-24.04_edge | 05/2029 | Python 3.12 on Ubuntu 24.04 LTS | amd64, arm64 |
3.10-22.04_stable | 3.10-22.04, 3.10-22.04_beta, 3.10-22.04_candidate, 3.10-22.04_edge | 06/2027 | Python 3.10 on Ubuntu 22.04 LTS | arm64, amd64 |
track_risk |
Channel Tags shows the most stable channel for that track ordered stable, candidate, beta, edge. More risky channels are always implicitly available. So if beta is listed, you can also pull edge. If candidate is listed, you can pull beta and edge. When stable is listed, all four are available. Images are guaranteed to progress through the sequence edge, beta, candidate before stable.
If your usage includes commercial redistribution, or requires ESM or unavailable channels/versions, please get in touch with the Canonical team (or using ***).
Launch this image locally:
shdocker run -d --name python-container -e TZ=UTC ubuntu/python:3.13-25.10_stable
To debug the container:
shdocker logs -f python-container
To debug the container:
bashdocker logs -f python-container
To get an interactive python3 interpreter:
bashdocker exec -it python-container python3
If you find a bug in our image or want to request a specific feature, please file a bug here:
[***]
Please title the bug "python: <issue summary>". Make sure to include the digest of the image you are using, from:
shdocker images --no-trunc --quiet ubuntu/python:<tag>
These channels (tags) are not updated anymore. Please upgrade to newer channels, or reach out if you can't upgrade.
| Track | Version | EOL | Upgrade Path |
|---|---|---|---|
| Python 3.13 on Ubuntu 25.04 | 01/2026 | - | |
| Python 3.8 on Ubuntu 20.04 LTS | 05/2025 | - | |
track |

manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务