镜像概览

完整引用
docker.io/centos/python-38-centos7
Registry
docker.io
命名空间
centos
仓库
python-38-centos7
已缓存 Tag 数
30
最近同步
07/13/2026, 01:51 PM

简介

CentOS 7 Python 3.8 S2I 基础镜像,企业 Linux 上 Python 应用构建与运行基座,OpenShift/RHEL 兼容运行时。

详细介绍

centos/python-38-centos7 为 Red Hat S2I 风格的 Python 3.8 基础镜像,基于 CentOS 7,适合构建与运行 Python Web 应用。定位为 Python 应用构建/运行基座;OpenShift 兼容部署、企业 CentOS 环境 Python 服务或遗留 CentOS 7 应用容器化。

快速启动

docker run --rm -it \
  -v /path/to/app:/opt/app-root/src \
  docker.io/centos/python-38-centos7:latest

推荐实践

docker run -d --name pyapp \
  --restart unless-stopped \
  -p 8080:8080 \
  -e APP_MODULE=wsgi:app \
  myapp:python38-centos7

核心参数说明

  • 基座 — Python 3.8 on CentOS 7
  • 构建 — 通常基于此 Dockerfile 构建应用镜像
  • 端口 — 默认 8080(S2I 惯例)
  • 注意 — CentOS 7 已 EOL,评估迁移

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: pyapp
spec:
  replicas: 2
  selector:
    matchLabels:
      app: pyapp
  template:
    metadata:
      labels:
        app: pyapp
    spec:
      containers:
        - name: app
          image: myapp:python38-centos7
          ports:
            - containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
  name: pyapp
spec:
  selector:
    app: pyapp
  ports:
    - port: 8080
      targetPort: 8080

基于该基座构建应用镜像后部署。

最新 Tag(20 条)

查看全部 30 个 Tag →
Tag架构推送时间大小Digest同步期望操作
docker.io/centos/python-38-centos7
:latest
linux/amd64
2021/07/26 17:59237.8 MBsha256:4b66b1a8da1c
docker.io/centos/python-38-centos7
:20210726-fad62e9
linux/amd64
2021/07/26 17:59237.8 MBsha256:4b66b1a8da1c
docker.io/centos/python-38-centos7
:1
linux/amd64
2021/07/26 17:59237.8 MBsha256:4b66b1a8da1c
docker.io/centos/python-38-centos7
:20210630-9d15b0d
linux/amd64
2021/06/30 22:50237.8 MBsha256:5bc605e048f5
docker.io/centos/python-38-centos7
:20210630-221f45f
linux/amd64
2021/06/30 19:28237.8 MBsha256:42572a080c3b
docker.io/centos/python-38-centos7
:20210629-d1d8ab8
linux/amd64
2021/06/30 05:11237.8 MBsha256:addd4a94c6e5
docker.io/centos/python-38-centos7
:20210629-304c7c8
linux/amd64
2021/06/30 01:06237.8 MBsha256:0a74a944d3d5
docker.io/centos/python-38-centos7
:20210628-c4a0586
linux/amd64
2021/06/28 20:42237.8 MBsha256:3f350b8755ce
docker.io/centos/python-38-centos7
:20210625-c0a54d1
linux/amd64
2021/06/25 19:11237.8 MBsha256:bcdcfec01764
docker.io/centos/python-38-centos7
:20210625-cc6153e
linux/amd64
2021/06/25 18:07237.8 MBsha256:c32458ee0eda
docker.io/centos/python-38-centos7
:20210614-a5d4765
linux/amd64
2021/06/15 04:42237.8 MBsha256:43a61e4508fa
docker.io/centos/python-38-centos7
:20210609-cc2f7d9
linux/amd64
2021/06/10 00:05237.8 MBsha256:facbaa245ef5
docker.io/centos/python-38-centos7
:20210601-16ea827
linux/amd64
2021/06/01 16:16236.3 MBsha256:2dda67a9760e
docker.io/centos/python-38-centos7
:20210525-36d4a33
linux/amd64
2021/05/26 02:47236.3 MBsha256:491250327f9f
docker.io/centos/python-38-centos7
:20210524-8b42366
linux/amd64
2021/05/25 00:27236.3 MBsha256:0ff1a2fdd2af
docker.io/centos/python-38-centos7
:20210521-c6ff36a
linux/amd64
2021/05/21 14:28236.3 MBsha256:28b941c4f7b3
docker.io/centos/python-38-centos7
:20210512-84a9c88
linux/amd64
2021/05/17 21:10236.3 MBsha256:742dabee6b83
docker.io/centos/python-38-centos7
:20210505-7be5ae5
linux/amd64
2021/05/05 14:17235.9 MBsha256:9fe62ff8f104
docker.io/centos/python-38-centos7
:20210503-8f2117c
linux/amd64
2021/05/03 22:00235.9 MBsha256:524a58057c16
docker.io/centos/python-38-centos7
:20210330-4d85c35
linux/amd64
2021/03/30 14:45234.0 MBsha256:ed47a8c04be1