A chiselled Ubuntu rock with the Python runtime
100K+
Current 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 chiselled 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.
Up to 5 years of free security maintenance on LTS channels.
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 [email protected]).
Launch this image locally:
docker run -d --name python-container -e TZ=UTC ubuntu/python:3.13-25.10_stable
To debug the container:
docker logs -f python-container
To debug the container:
docker logs -f python-container
To get an interactive python3 interpreter:
docker 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:
https://bugs.launchpad.net/ubuntu-docker-images/+filebug
Please title the bug "python: <issue summary>". Make sure to include the digest of the image you are using, from:
docker 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 |
Content type
Image
Digest
sha256:e0629517a…
Size
20.5 MB
Last updated
1 day ago
docker pull ubuntu/python:3.13-25.10_stablePulls:
4,448
Feb 16 to Feb 22