A chiselled Ubuntu rock with the Python runtime
100K+
ubuntu/python is a rock for Python maintained by Canonical.
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.
NOTE: These tags follow a specific naming convention that respects the concept of channels.
| Tags | Supported until | Version | Base | Architectures | |
|---|---|---|---|---|---|
3.13-25.10_stable | aliases3.13-25.10, 3.13-25.10_beta, 3.13-25.10_candidate, 3.13-25.10_edge | 07/2026 | 3.13 | 25.10 | amd64, arm64 |
3.12-24.04_stable | aliases3.12-24.04, 3.12-24.04_beta, 3.12-24.04_candidate, 3.12-24.04_edge | 05/2029 | 3.12 | 24.04 | arm64, amd64 |
3.10-22.04_stable | aliases3.10-22.04, 3.10-22.04_beta, 3.10-22.04_candidate, 3.10-22.04_edge | 06/2027 | 3.10 | 22.04 | arm64, amd64 |
3.14-26.04_edge | aliases3.14-26.04_edge | 05/2026 | 3.14 | 26.04 | amd64, arm64 |
| Tags | Support ended on | Upgrade Path | |
|---|---|---|---|
3.13-25.04_stable | aliases3.13-25.043.13-25.04_beta3.13-25.04_candidate3.13-25.04_edge | 01/2026 | - |
3.8-20.04_stable | aliases3.8-20.043.8-20.04_beta3.8-20.04_candidate3.8-20.04_edge | 05/2025 | - |
This rock's entrypoint is Pebble, a container-optimized init process that enables the orchestration of a collection of local service processes as an organized set.
To view the Pebble services and checks defined in this rock:
docker run --rm ubuntu/python:3.13-25.04_stable plan
To run this rock, use any of the usual container runtimes, for example, docker:
docker run --name python-container \
ubuntu/python:3.13-25.04_stable \
exec python3 -c 'print("Hello World!")'
The container prints "Hello World!" through the standard output.
To view the logs of the running container, run:
docker exec python-container pebble logs
Or, for a specific service:
docker exec python-container pebble logs <service>
Rocks may have predefined health checks that you can list by running:
docker exec python-container pebble checks
The overall health of your container can be inspected via:
docker exec python-container pebble health
Canonical is the provider of this container image. It is the user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within, as well as with Canonical’s IP Policy.
Content type
Image
Digest
sha256:6b77012c5…
Size
21.5 MB
Last updated
4 days ago
docker pull ubuntu/python:3.14-26.04_edgePulls:
4,186
Last week