这是一个基于Ubuntu系统精雕细琢而成的运行基石,集成了Python运行时环境,通过精简优化的系统底层确保了高效稳定的性能,为Python应用程序提供了可靠的运行载体,无论是开发调试、测试验证还是生产部署场景,都能满足轻量、安全且高效的运行需求,是构建Python应用生态的理想基础组件。
ubuntu/python is a rock for Python maintained by https://canonical.com/.
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 https://www.python.org/.
\https://www.python.org/\]
Tags and Architectures
NOTE: These tags follow a specific naming convention that respects the concept of channels.
| Tags | Supported until | Version | Base | Architectures | |
|---|---|---|---|---|---|
3.14-26.04_stable | aliases3.14-26.04, 3.14-26.04_beta, 3.14-26.04_candidate, 3.14-26.04_edge | 05/2031 | 3.14 | 26.04 | amd64, s390x, arm64, ppc64le |
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 | amd64, s390x, ppc64le, arm64 |
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 | s390x, arm64, amd64, ppc64le |
View deprecated tags
| Tags | Support ended on | Upgrade Path | |
|---|---|---|---|
3.13-25.10_stable | aliases3.13-25.103.13-25.10_beta3.13-25.10_candidate3.13-25.10_edge | 07/2026 | - |
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 | - |
Get started
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.
\https://documentation.ubuntu.com/pebble/\]
Inspect
To view the https://documentation.ubuntu.com/rockcraft/en/latest/reference/rockcraft-yaml/#services and https://documentation.ubuntu.com/rockcraft/latest/reference/rockcraft-yaml/#checks defined in this rock:
shdocker run --rm ubuntu/python:3.13-25.10_stable plan
Run
To run this rock, use any of the usual container runtimes, for example, docker:
shdocker run --name python-container \ ubuntu/python:3.13-25.10_stable \ exec python3 -c 'print("Hello World!")'
The container prints "Hello World!" through the standard output.
Get logs
To view the logs of the running container, run:
shdocker exec python-container pebble logs
Or, for a specific service:
shdocker exec python-container pebble logs <service>
Monitor health checks
Rocks may have predefined health checks that you can list by running:
shdocker exec python-container pebble checks
The overall health of your container can be inspected via:
shdocker exec python-container pebble health
\https://github.com/canonical/python-rock/issues\] \https://github.com/canonical/python-rock\]
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 https://canonical.com/legal/intellectual-property-policy.
ubuntu 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务