logo
ghcr.io/cloudnative-pg/postgresql:15.19
linux/amd64 ghcr.io

这是一个 Cloud Native PG 提供的 PostgreSQL 数据库服务器 Docker 镜像。它提供了一种便捷的方式来在 Docker 环境中运行和管理 PostgreSQL 数据库。

14
浏览次数
743.09MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19
源镜像
ghcr.io/cloudnative-pg/postgresql:15.19
镜像ID
sha256:5a418e7557696ab2308a330dc1ff8d63d78df6722345b0ffb7a9ff2780527606
镜像 TAG
15.19
镜像大小
743.09MB
平台架构
linux/amd64
镜像源
ghcr.io
CMD
bash
启动入口
工作目录
OS/平台
linux/amd64
镜像创建
2026-08-17T08:15:54.558447924Z
同步时间
2026-08-18 16:23
浏览量
14 次
贡献者
⚙️ 环境变量 2
KeyValue
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/15/bin 0
PIP_BREAK_SYSTEM_PACKAGES=1 1
🏷️ 镜像标签 13
KeyValue
The CloudNativePG Contributors org.opencontainers.image.authors
sha256:f313b4bd62667092a59b3a664d7d3ab8b5e65f41675f48e81455a15dc5abe792 org.opencontainers.image.base.digest
docker.io/library/debian:bullseye-slim org.opencontainers.image.base.name
2026-08-17T08:14:47Z org.opencontainers.image.created
A system PostgreSQL 15.19 container image org.opencontainers.image.description
https://github.com/cloudnative-pg/postgres-containers org.opencontainers.image.documentation
Apache-2.0 org.opencontainers.image.licenses
3817b6b2626264053ad8234628624f1d134267a9 org.opencontainers.image.revision
https://github.com/cloudnative-pg/postgres-containers org.opencontainers.image.source
CloudNativePG PostgreSQL 15.19 system org.opencontainers.image.title
https://github.com/cloudnative-pg/postgres-containers org.opencontainers.image.url
The CloudNativePG Contributors org.opencontainers.image.vendor
15.19 org.opencontainers.image.version
🛡️ 镜像安全扫描
debian 11.11 Trivy 2026-08-18 16:23 查看完整报告
179
低危 LOW
205
中危 MEDIUM
59
高危 HIGH
19
严重 CRITICAL
受影响目标 (3)
ghcr.io/cloudnative-pg/postgresql:15.19 (debian 11.11) debian Python python-pkg /etc/ssl/private/ssl-cert-snakeoil.key

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19  ghcr.io/cloudnative-pg/postgresql:15.19

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19  ghcr.io/cloudnative-pg/postgresql:15.19

Shell快速替换命令

sed -i 's#ghcr.io/cloudnative-pg/postgresql:15.19#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19  ghcr.io/cloudnative-pg/postgresql:15.19'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19  ghcr.io/cloudnative-pg/postgresql:15.19'

镜像构建历史


# 2026-08-17 16:15:54  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-08-17 16:15:54  137.68MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=15.19 PG_MAJOR=15 EXTENSIONS=postgresql-15-pgaudit postgresql-15-pgvector postgresql-15-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= BARMAN_VERSION=3.19.1 /bin/sh -c apt-get update && 	apt-get install -y --no-install-recommends 		build-essential python3-dev 		python3-pip 		python3-psycopg2 	&& 	pip3 install --no-cache-dir barman[cloud,azure,snappy,google,zstandard,lz4]==${BARMAN_VERSION} && 	python3 -c "import sysconfig, compileall; compileall.compile_dir(sysconfig.get_path('stdlib'), quiet=1); compileall.compile_dir(sysconfig.get_path('purelib'), quiet=1); compileall.compile_dir(sysconfig.get_path('platlib'), quiet=1)" && 	apt-get remove -y --purge --autoremove build-essential python3-dev && 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && 	rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* # buildkit
                        
# 2026-08-17 16:15:20  0.00B 指定运行容器时使用的用户
USER root
                        
# 2026-08-17 16:15:20  0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
                        
# 2026-08-17 16:15:20  0.00B 定义构建参数
ARG BARMAN_VERSION=3.19.1
                        
# 2026-08-17 16:15:20  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-08-17 16:15:20  222.25MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=15.19 PG_MAJOR=15 EXTENSIONS=postgresql-15-pgaudit postgresql-15-pgvector postgresql-15-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= /bin/sh -c apt-get update &&     apt-get install -y --no-install-recommends locales-all ${STANDARD_ADDITIONAL_POSTGRES_PACKAGES} ${EXTENSIONS} &&     apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false &&     rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* # buildkit
                        
# 2026-08-17 16:15:13  0.00B 指定运行容器时使用的用户
USER root
                        
# 2026-08-17 16:15:13  0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=
                        
# 2026-08-17 16:15:13  0.00B 定义构建参数
ARG EXTENSIONS=postgresql-15-pgaudit postgresql-15-pgvector postgresql-15-pg-failover-slots
                        
# 2026-08-17 16:15:13  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-08-17 16:15:13  2.00KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=15.19 PG_MAJOR=15 /bin/sh -c usermod -u 26 postgres # buildkit
                        
# 2026-08-17 16:15:13  302.47MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=15.19 PG_MAJOR=15 /bin/sh -c apt-get update &&     apt-get install -y --no-install-recommends postgresql-common ca-certificates gnupg &&     /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y -c "${PG_MAJOR}" &&     apt-get install -y --no-install-recommends -o Dpkg::::="--force-confdef" -o Dpkg::::="--force-confold" postgresql-common &&     sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf &&     apt-get install -y --no-install-recommends       libsasl2-modules libldap-common       -o Dpkg::::="--force-confdef" -o Dpkg::::="--force-confold" "postgresql-${PG_MAJOR}=${PG_VERSION}*" &&     apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false &&     rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* # buildkit
                        
# 2026-08-17 16:15:13  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/15/bin
                        
# 2026-08-17 16:15:13  0.00B 定义构建参数
ARG PG_MAJOR=15
                        
# 2026-08-17 16:15:13  0.00B 定义构建参数
ARG PG_VERSION=15.19
                        
# 2026-08-03 08:00:00  80.68MB 
# debian.sh --arch 'amd64' out/ 'bullseye' '@1785715200'
                        
                    

镜像信息

{
    "Id": "sha256:5a418e7557696ab2308a330dc1ff8d63d78df6722345b0ffb7a9ff2780527606",
    "RepoTags": [
        "ghcr.io/cloudnative-pg/postgresql:15.19",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19"
    ],
    "RepoDigests": [
        "ghcr.io/cloudnative-pg/postgresql@sha256:cbab476b80bb605e9563a6ae9b0fa7fedc0e6fa923986a99c332fd740ec80611",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:f195fe8111a789385c17027010dcd3e87274f4177c63bdb241b1826e412cf8d1"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-08-17T08:15:54.558447924Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "26",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/15/bin",
            "PIP_BREAK_SYSTEM_PACKAGES=1"
        ],
        "Cmd": [
            "bash"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.authors": "The CloudNativePG Contributors",
            "org.opencontainers.image.base.digest": "sha256:f313b4bd62667092a59b3a664d7d3ab8b5e65f41675f48e81455a15dc5abe792",
            "org.opencontainers.image.base.name": "docker.io/library/debian:bullseye-slim",
            "org.opencontainers.image.created": "2026-08-17T08:14:47Z",
            "org.opencontainers.image.description": "A system PostgreSQL 15.19 container image",
            "org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.revision": "3817b6b2626264053ad8234628624f1d134267a9",
            "org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.title": "CloudNativePG PostgreSQL 15.19 system",
            "org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.vendor": "The CloudNativePG Contributors",
            "org.opencontainers.image.version": "15.19"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 743088195,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/40cee11b84d8170ffd9c30df1d18ff0dab88564815f450cde0f2fcf1f3240e34/diff:/var/lib/docker/overlay2/eecc21101e2fe5023eb6330aba486ab9856e73b6deb6082f9a661cb0328db63c/diff:/var/lib/docker/overlay2/740ed8bfd6c33e026e54b99c9f54ac0515a2d13ddb7b499d62a77eb39927c2b5/diff:/var/lib/docker/overlay2/d455ec0520e19090cf357bb4045e9e0dc57997ea7c99d3c7564a70667471fe97/diff",
            "MergedDir": "/var/lib/docker/overlay2/c65960fd34576af2d0291da610f3dce7eaa4039d219419f0c1824b5eb95b2aec/merged",
            "UpperDir": "/var/lib/docker/overlay2/c65960fd34576af2d0291da610f3dce7eaa4039d219419f0c1824b5eb95b2aec/diff",
            "WorkDir": "/var/lib/docker/overlay2/c65960fd34576af2d0291da610f3dce7eaa4039d219419f0c1824b5eb95b2aec/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:36952eceefb67987392fe5e6ba2db453c9b400cdcab2fce9b991a0c1fd9a1d32",
            "sha256:2b16d8faf5729fac4b8a47932463f6d3613b800643cfbad2a6787a3fb5289a8d",
            "sha256:fc6d198034dce994fba3966dbb67635b177cf2e0c95c3a3a49308e9a4cd7baec",
            "sha256:864e8c94cba2d48c8dd22f2c612d87d4089de76a6a9dd69a820811ed20fa7944",
            "sha256:debc4e40102a1f9f4525437b38876c8eaa6cc16f29a5782b728ebb99f6a809e3"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-08-18T16:23:24.404263455+08:00"
    }
}

更多版本

ghcr.io/cloudnative-pg/postgresql:15

linux/amd64 ghcr.io610.35MB2025-05-06 09:53
1526

ghcr.io/cloudnative-pg/postgresql:17-bookworm

linux/amd64 ghcr.io651.76MB2025-09-02 02:13
700

ghcr.io/cloudnative-pg/postgresql:16.10-system-trixie

linux/amd64 ghcr.io805.21MB2025-10-28 20:30
565

ghcr.io/cloudnative-pg/postgresql:16

linux/amd64 ghcr.io740.81MB2025-10-28 20:47
887

ghcr.io/cloudnative-pg/postgresql:17

linux/amd64 ghcr.io742.62MB2025-10-29 14:41
1091

ghcr.io/cloudnative-pg/postgresql:16-bookworm

linux/amd64 ghcr.io688.45MB2026-02-27 18:06
361

ghcr.io/cloudnative-pg/postgresql:15-bookworm

linux/amd64 ghcr.io681.17MB2026-02-28 15:51
314

ghcr.io/cloudnative-pg/postgresql:17.4-bookworm

linux/amd64 ghcr.io646.92MB2026-03-03 09:52
322

ghcr.io/cloudnative-pg/postgresql:15.17

linux/amd64 ghcr.io740.21MB2026-03-03 19:32
392

ghcr.io/cloudnative-pg/postgresql:18.0-system-trixie

linux/arm64 ghcr.io830.93MB2026-03-08 00:08
349

ghcr.io/cloudnative-pg/postgresql:18.0

linux/arm64 ghcr.io722.93MB2026-03-08 00:42
430

ghcr.io/cloudnative-pg/postgresql:18.0

linux/amd64 ghcr.io742.29MB2026-03-19 14:14
541

ghcr.io/cloudnative-pg/postgresql:16.13

linux/amd64 ghcr.io749.92MB2026-04-23 14:34
320

ghcr.io/cloudnative-pg/postgresql:14.22

linux/amd64 ghcr.io746.58MB2026-04-23 14:59
221

ghcr.io/cloudnative-pg/postgresql:13.22

linux/amd64 ghcr.io735.31MB2026-04-23 16:42
203

ghcr.io/cloudnative-pg/postgresql:16

linux/arm64 ghcr.io747.51MB2026-04-27 14:25
221

ghcr.io/cloudnative-pg/postgresql:18.4

linux/amd64 ghcr.io745.07MB2026-05-22 09:41
533

ghcr.io/cloudnative-pg/postgresql:17.4

linux/amd64 ghcr.io620.47MB2026-08-11 19:40
51

ghcr.io/cloudnative-pg/postgresql:15.19

linux/amd64 ghcr.io743.09MB2026-08-18 16:23
13
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×