ubuntu/python

Verified Publisher

By Canonical

Updated 1 day ago

A chiselled Ubuntu rock with the Python runtime

Image
Languages & frameworks
31

100K+

ubuntu/python repository overview

Chiselled Ubuntu for Python

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.

About Python

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.

Tags and Architectures

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 TagsSupported untilCurrentlyArchitectures
3.13-25.10_stable3.13-25.10, 3.13-25.10_beta, 3.13-25.10_candidate, 3.13-25.10_edge07/2026Python 3.13 on Ubuntu 25.10 amd64, arm64
3.12-24.04_stable3.12-24.04, 3.12-24.04_beta, 3.12-24.04_candidate, 3.12-24.04_edge05/2029Python 3.12 on Ubuntu 24.04 LTSamd64, arm64
3.10-22.04_stable3.10-22.04, 3.10-22.04_beta, 3.10-22.04_candidate, 3.10-22.04_edge06/2027Python 3.10 on Ubuntu 22.04 LTSarm64, 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.

Commercial use and Extended Security Maintenance channels

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]).

Usage

Launch this image locally:

docker run -d --name python-container -e TZ=UTC ubuntu/python:3.13-25.10_stable
Testing/Debugging

To debug the container:

docker logs -f python-container
Debugging

To debug the container:

docker logs -f python-container

To get an interactive python3 interpreter:

docker exec -it python-container python3

Bugs and feature requests

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>

Deprecated channels & tags

These channels (tags) are not updated anymore. Please upgrade to newer channels, or reach out if you can't upgrade.

TrackVersionEOLUpgrade Path
3.13-25.04Python 3.13 on Ubuntu 25.04 01/2026 -
3.8-20.04Python 3.8 on Ubuntu 20.04 LTS05/2025 -
track

Tag summary

Content type

Image

Digest

sha256:e0629517a…

Size

20.5 MB

Last updated

1 day ago

docker pull ubuntu/python:3.13-25.10_stable

This week's pulls

Pulls:

4,448

Feb 16 to Feb 22