openeuler/python Docker 镜像
基于openEuler构建的官方Python Docker镜像,支持Python 3.9.9至3.13.4等多个版本及amd64/arm64架构,适用于Python应用开发与运行,由openEuler CloudNative SIG维护,免费使用且无用户速率限制。
Python | openEuler 镜像文档
镜像概述和主要用途
本镜像为基于https://repo.openeuler.org/构建的官方Python Docker镜像,由https://gitee.com/openeuler/cloudnative维护。该镜像免费使用且免除每用户速率限制,提供稳定的Python运行环境,适用于Python应用的开发、测试和部署。
Python是一种高级通用编程语言,其设计理念强调代码可读性,采用显著的缩进格式。它具有动态类型检查和垃圾回收机制,支持结构化(尤其是过程式)、面向对象和函数式等多种编程范式,因全面的标准库而常被描述为“内置电池”的语言。
核心功能和特性
- 多版本支持:涵盖Python 3.9.9、3.10.17、3.11.13、3.12.10、3.13.4等版本
- 多架构支持:兼容amd64和arm64架构
- 稳定基础:基于openEuler LTS版本构建,确保系统稳定性
- 无速率限制:免费使用且无每用户速率限制
- 官方维护:由openEuler CloudNative SIG持续维护更新
支持的标签及对应Dockerfile链接
镜像标签由Python版本和基础镜像版本组成,具体信息如下:
| 标签 | 说明 | 架构 |
|---|---|---|
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/Others/python/3.9.9/22.03-lts/Dockerfile | Python 3.9.9 基于 openEuler 22.03-LTS | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/Others/python/3.9.9/24.03-lts/Dockerfile | Python 3.9.9 基于 openEuler 24.03-LTS | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/Others/python/3.10.17/22.03-lts/Dockerfile | Python 3.10.17 基于 openEuler 22.03-LTS | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/Others/python/3.10.17/24.03-lts/Dockerfile | Python 3.10.17 基于 openEuler 24.03-LTS | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/Others/python/3.11.13/22.03-lts/Dockerfile | Python 3.11.13 基于 openEuler 22.03-LTS | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/Others/python/3.11.13/24.03-lts/Dockerfile | Python 3.11.13 基于 openEuler 24.03-LTS | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/Others/python/3.12.10/22.03-lts/Dockerfile | Python 3.12.10 基于 openEuler 22.03-LTS | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/Others/python/3.12.10/24.03-lts/Dockerfile | Python 3.12.10 基于 openEuler 24.03-LTS | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/Others/python/3.13.4/22.03-lts/Dockerfile | Python 3.13.4 基于 openEuler 22.03-LTS | amd64, arm64 |
| https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/Others/python/3.13.4/24.03-lts/Dockerfile | Python 3.13.4 基于 openEuler 24.03-LTS | amd64, arm64 |
使用场景和适用范围
- Python应用开发环境搭建
- Python程序的容器化部署
- 跨架构(amd64/arm64)的Python应用测试
- 需要稳定基础环境的Python项目运行
使用方法和配置说明
拉取镜像
根据需求选择对应的{Tag},执行以下命令拉取镜像:
bashdocker pull docker.xuanyuan.run/openeuler/python:{Tag}
示例(拉取Python 3.13.4基于openEuler 24.03-LTS的镜像):
bashdocker pull docker.xuanyuan.run/openeuler/python:3.13.4-oe2403lts
启动容器
使用以下命令从镜像启动Python容器:
bashdocker run -it --name my-python docker.xuanyuan.run/openeuler/python:{Tag}
示例(启动交互式Python容器):
bashdocker run -it --name my-python docker.xuanyuan.run/openeuler/python:3.13.4-oe2403lts
问题与解答
如有任何问题或需要使用特殊功能,请在https://gitee.com/openeuler/openeuler-docker-images仓库提交issue或pull request。
获取帮助
- https://gitee.com/openeuler/cloudnative
- https://gitee.com/openeuler/community
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表。
DockerHub 原生拉取命令
docker pull openeuler/python:<标签>
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务