logo
ghcr.io/cloudnative-pg/postgresql:18.7-system-trixie
linux/amd64 ghcr.io 维伦 贡献

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

7
浏览次数
833.73MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.7-system-trixie
源镜像
ghcr.io/cloudnative-pg/postgresql:18.7-system-trixie
镜像ID
sha256:013ecc89e4534de03e06aeab7611345ccc1e8dfeee7b32377c1f9265e65d9d9b
镜像 TAG
18.7-system-trixie
镜像大小
833.73MB
平台架构
linux/amd64
镜像源
ghcr.io
CMD
bash
启动入口
工作目录
OS/平台
linux/amd64
镜像创建
2026-11-23T08:10:48.341376356Z
同步时间
2026-11-25 11:53
浏览量
7 次
贡献者
avatar 维伦
⚙️ 环境变量 2
KeyValue
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/18/bin 0
PIP_BREAK_SYSTEM_PACKAGES=1 1
🏷️ 镜像标签 13
KeyValue
The CloudNativePG Contributors org.opencontainers.image.authors
sha256:a72b4433de1cf7d6bae0c4cee74d0547f58601a643b3375f070c51600d63b6b2 org.opencontainers.image.base.digest
docker.io/library/debian:trixie-slim org.opencontainers.image.base.name
2026-11-23T08:09:50Z org.opencontainers.image.created
A system PostgreSQL 18.7 container image org.opencontainers.image.description
https://github.com/cloudnative-pg/postgres-containers org.opencontainers.image.documentation
Apache-2.0 org.opencontainers.image.licenses
f717faecf9c35847402333b1007320f728c74cee org.opencontainers.image.revision
https://github.com/cloudnative-pg/postgres-containers org.opencontainers.image.source
CloudNativePG PostgreSQL 18.7 system org.opencontainers.image.title
https://github.com/cloudnative-pg/postgres-containers org.opencontainers.image.url
The CloudNativePG Contributors org.opencontainers.image.vendor
18.7 org.opencontainers.image.version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2026-11-23 16:10:48  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-11-23 16:10:48  144.26MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=18.7 PG_MAJOR=18 EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit BARMAN_VERSION=3.20.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 --ignore-requires-python 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 python3-pip && 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && 	rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* # buildkit
                        
# 2026-11-23 16:10:23  0.00B 指定运行容器时使用的用户
USER root
                        
# 2026-11-23 16:10:23  0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
                        
# 2026-11-23 16:10:23  0.00B 定义构建参数
ARG BARMAN_VERSION=3.20.1
                        
# 2026-11-23 16:10:23  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-11-23 16:10:23  419.47MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=18.7 PG_MAJOR=18 EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit /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-11-23 16:10:15  0.00B 指定运行容器时使用的用户
USER root
                        
# 2026-11-23 16:10:15  0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit
                        
# 2026-11-23 16:10:15  0.00B 定义构建参数
ARG EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots
                        
# 2026-11-23 16:10:15  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-11-23 16:10:15  1.97KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.7 PG_MAJOR=18 /bin/sh -c usermod -u 26 postgres # buildkit
                        
# 2026-11-23 16:10:15  191.14MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.7 PG_MAJOR=18 /bin/sh -c apt-get update &&     apt-get upgrade -y &&     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-11-23 16:10:15  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/18/bin
                        
# 2026-11-23 16:10:15  0.00B 定义构建参数
ARG PG_MAJOR=18
                        
# 2026-11-23 16:10:15  0.00B 定义构建参数
ARG PG_VERSION=18.7
                        
# 2026-11-05 05:23:39  78.86MB 
# debian.sh --arch 'amd64' out/ 'trixie' '@1793827419'
                        
                    

镜像信息

{
    "Id": "sha256:013ecc89e4534de03e06aeab7611345ccc1e8dfeee7b32377c1f9265e65d9d9b",
    "RepoTags": [
        "ghcr.io/cloudnative-pg/postgresql:18.7-system-trixie",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.7-system-trixie"
    ],
    "RepoDigests": [
        "ghcr.io/cloudnative-pg/postgresql@sha256:c437b7c6c00aa7e66f5d6de1dd83602391fdebd4ff776ffb1ab7aaba5e7351ad",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:ff0c974ae09c817da5269bb1174b730f401206bd39665e3ce123a893613f2f01"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-11-23T08:10:48.341376356Z",
    "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/18/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:a72b4433de1cf7d6bae0c4cee74d0547f58601a643b3375f070c51600d63b6b2",
            "org.opencontainers.image.base.name": "docker.io/library/debian:trixie-slim",
            "org.opencontainers.image.created": "2026-11-23T08:09:50Z",
            "org.opencontainers.image.description": "A system PostgreSQL 18.7 container image",
            "org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.revision": "f717faecf9c35847402333b1007320f728c74cee",
            "org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.title": "CloudNativePG PostgreSQL 18.7 system",
            "org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.vendor": "The CloudNativePG Contributors",
            "org.opencontainers.image.version": "18.7"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 833731990,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/27f08e1ab4247f4001fd3f4cb0c180413909fdd9923e7ef056a160aafffd957c/diff:/var/lib/docker/overlay2/6480998c07e547047aaa0a6769bb00793370c05a9c4f30be1e1a8c4010f8f550/diff:/var/lib/docker/overlay2/c3b8dca853fac1868ef82c4a32bc5d4823b38f9b076984aaa5e43c57a2176571/diff:/var/lib/docker/overlay2/aac50f783aa42778cd21bccfb53e18abc1f770c60dd970ff909040d0f001596a/diff",
            "MergedDir": "/var/lib/docker/overlay2/e63ee931d526e55d0b2a84ea80e676ee0dafa62f13531e6292c71a4e957b1960/merged",
            "UpperDir": "/var/lib/docker/overlay2/e63ee931d526e55d0b2a84ea80e676ee0dafa62f13531e6292c71a4e957b1960/diff",
            "WorkDir": "/var/lib/docker/overlay2/e63ee931d526e55d0b2a84ea80e676ee0dafa62f13531e6292c71a4e957b1960/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:dd57f90311a2567b55ff22eeacff1602fd04ad7566e315957731359eab173b90",
            "sha256:5c05faa8f3801ade62f9c062a3cece6527c0336d0ac7c231b7494bbf1334d444",
            "sha256:0e68231749d3b84fcd1ee449f9fb8baffe53ef76fba25a7dfb149c1215d4d8cb",
            "sha256:59d3718a8b6888a72bdf62e6b019e5a5a7322ba465e75b21819daf12e26f5ac7",
            "sha256:5ab4fc7e876a22e63d71d65006bad2c6caef9c8f0bfcc38dd30f917b2410ec59"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-11-25T11:53:27.220976647+08:00"
    }
}

更多版本

ghcr.io/cloudnative-pg/postgresql:13.22

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

ghcr.io/cloudnative-pg/postgresql:14.22

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

ghcr.io/cloudnative-pg/postgresql:15

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

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

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

ghcr.io/cloudnative-pg/postgresql:15.17

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

ghcr.io/cloudnative-pg/postgresql:15.19

linux/amd64 ghcr.io743.09MB2026-08-18 16:23
247

ghcr.io/cloudnative-pg/postgresql:15.7-11

linux/amd64 ghcr.io526.30MB2026-08-21 11:12
175

ghcr.io/cloudnative-pg/postgresql:16

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

ghcr.io/cloudnative-pg/postgresql:16

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

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

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

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

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

ghcr.io/cloudnative-pg/postgresql:16.13

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

ghcr.io/cloudnative-pg/postgresql:17

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

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

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

ghcr.io/cloudnative-pg/postgresql:17.2

linux/amd64 ghcr.io571.16MB2026-09-16 11:14
918

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

linux/amd64 ghcr.io607.97MB2026-09-16 11:14
156

ghcr.io/cloudnative-pg/postgresql:17.4

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

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

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

ghcr.io/cloudnative-pg/postgresql:18.0

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

ghcr.io/cloudnative-pg/postgresql:18.0

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

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

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

ghcr.io/cloudnative-pg/postgresql:18.4

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

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

linux/amd64 ghcr.io803.31MB2026-09-02 16:55
238

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

linux/amd64 ghcr.io833.73MB2026-11-25 11:53
6
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×