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

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

10
浏览次数
803.31MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie
源镜像
ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie
镜像ID
sha256:c90b4f58107ada70a298f009b4f5c723525ce5ea41ce55ca092c113a23eced1e
镜像 TAG
18.4-system-trixie
镜像大小
803.31MB
平台架构
linux/amd64
镜像源
ghcr.io
CMD
bash
启动入口
工作目录
OS/平台
linux/amd64
镜像创建
2026-08-13T07:38:21.119689853Z
同步时间
2026-09-02 16:55
浏览量
10 次
贡献者
⚙️ 环境变量 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:3a39a0592364683e6bab97937b72cad5a8fa6dcbbee90edb3bb48c7f8e94f258 org.opencontainers.image.base.digest
docker.io/library/debian:trixie-slim org.opencontainers.image.base.name
2026-08-13T07:37:26Z org.opencontainers.image.created
A system PostgreSQL 18.4 container image org.opencontainers.image.description
https://github.com/cloudnative-pg/postgres-containers org.opencontainers.image.documentation
Apache-2.0 org.opencontainers.image.licenses
46644c8b24b377df4f386f1e51e15a8b9fdf36c3 org.opencontainers.image.revision
https://github.com/cloudnative-pg/postgres-containers org.opencontainers.image.source
CloudNativePG PostgreSQL 18.4 system org.opencontainers.image.title
https://github.com/cloudnative-pg/postgres-containers org.opencontainers.image.url
The CloudNativePG Contributors org.opencontainers.image.vendor
18.4 org.opencontainers.image.version
🛡️ 镜像安全扫描
debian 13.6 Trivy 2026-09-02 16:56 查看完整报告
179
低危 LOW
194
中危 MEDIUM
78
高危 HIGH
13
严重 CRITICAL
受影响目标 (3)
ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie (debian 13.6) 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:18.4-system-trixie
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie  ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie

Containerd拉取命令

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

Shell快速替换命令

sed -i 's#ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.4-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.4-system-trixie && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie  ghcr.io/cloudnative-pg/postgresql:18.4-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.4-system-trixie && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie  ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie'

镜像构建历史


# 2026-08-13 15:38:21  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-08-13 15:38:21  152.32MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=18.4 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.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-13 15:37:57  0.00B 指定运行容器时使用的用户
USER root
                        
# 2026-08-13 15:37:57  0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
                        
# 2026-08-13 15:37:57  0.00B 定义构建参数
ARG BARMAN_VERSION=3.19.1
                        
# 2026-08-13 15:37:57  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-08-13 15:37:57  419.23MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=18.4 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-08-13 15:37:49  0.00B 指定运行容器时使用的用户
USER root
                        
# 2026-08-13 15:37:49  0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit
                        
# 2026-08-13 15:37:49  0.00B 定义构建参数
ARG EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots
                        
# 2026-08-13 15:37:49  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-08-13 15:37:49  1.82KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.4 PG_MAJOR=18 /bin/sh -c usermod -u 26 postgres # buildkit
                        
# 2026-08-13 15:37:48  153.13MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.4 PG_MAJOR=18 /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-13 15:37:48  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/18/bin
                        
# 2026-08-13 15:37:48  0.00B 定义构建参数
ARG PG_MAJOR=18
                        
# 2026-08-13 15:37:48  0.00B 定义构建参数
ARG PG_VERSION=18.4
                        
# 2026-08-03 08:00:00  78.62MB 
# debian.sh --arch 'amd64' out/ 'trixie' '@1785715200'
                        
                    

镜像信息

{
    "Id": "sha256:c90b4f58107ada70a298f009b4f5c723525ce5ea41ce55ca092c113a23eced1e",
    "RepoTags": [
        "ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie"
    ],
    "RepoDigests": [
        "ghcr.io/cloudnative-pg/postgresql@sha256:42708a75345b7a48fdd9257b071830783a97fd228529196b6313187a7198e185",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:407fecedb22cfecfeb5813c6fa47d30c21455156fa131696e9ff766a2da4dd5b"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-08-13T07:38:21.119689853Z",
    "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:3a39a0592364683e6bab97937b72cad5a8fa6dcbbee90edb3bb48c7f8e94f258",
            "org.opencontainers.image.base.name": "docker.io/library/debian:trixie-slim",
            "org.opencontainers.image.created": "2026-08-13T07:37:26Z",
            "org.opencontainers.image.description": "A system PostgreSQL 18.4 container image",
            "org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.revision": "46644c8b24b377df4f386f1e51e15a8b9fdf36c3",
            "org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.title": "CloudNativePG PostgreSQL 18.4 system",
            "org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.vendor": "The CloudNativePG Contributors",
            "org.opencontainers.image.version": "18.4"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 803306089,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/f5c9d72660c215e4dd6242b5d711f1704869e3751bb129ff7ab90d75ae77b67f/diff:/var/lib/docker/overlay2/68c0c33647c0b24b13dbfcae4aff1111b3e15961248efc737c13e263d11cf066/diff:/var/lib/docker/overlay2/12b7d37fc719f7aecf1c24278afbef4c2292ab27bdd58786d1cc8df65cd1c7c9/diff:/var/lib/docker/overlay2/faff4113146787f7bb5a6ce2a00d7d8484098129ae09c7d0ce5acd028427696c/diff",
            "MergedDir": "/var/lib/docker/overlay2/ee6595fe5db19ef0b5faec6c57bbe151210f6a693cdb8d24b837639a73de5b89/merged",
            "UpperDir": "/var/lib/docker/overlay2/ee6595fe5db19ef0b5faec6c57bbe151210f6a693cdb8d24b837639a73de5b89/diff",
            "WorkDir": "/var/lib/docker/overlay2/ee6595fe5db19ef0b5faec6c57bbe151210f6a693cdb8d24b837639a73de5b89/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:6f94328331290cbd81edab450664d42da7b64c191416c9346cd5d28c84f76035",
            "sha256:d68466b0aa93cbf34dc86127ae90ba07b82f38e694c5739a164a75da462baa68",
            "sha256:118e951549e1b02518751cafffff13658740ee09cb71237fc806990a7c45efe0",
            "sha256:2173dc37b377b03cc76e3cf67be09b3be69acf2f890f16d66a03f78607ffd2f5",
            "sha256:ae46e6d498504a66b105515d91480676f9fdf3a5f1bfe174693e223238102fc8"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-09-02T16:55:27.981635783+08:00"
    }
}

更多版本

ghcr.io/cloudnative-pg/postgresql:15

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

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

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

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

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

ghcr.io/cloudnative-pg/postgresql:16

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

ghcr.io/cloudnative-pg/postgresql:17

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

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

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

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

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

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

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

ghcr.io/cloudnative-pg/postgresql:15.17

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

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

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

ghcr.io/cloudnative-pg/postgresql:18.0

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

ghcr.io/cloudnative-pg/postgresql:18.0

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

ghcr.io/cloudnative-pg/postgresql:16.13

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

ghcr.io/cloudnative-pg/postgresql:14.22

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

ghcr.io/cloudnative-pg/postgresql:13.22

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

ghcr.io/cloudnative-pg/postgresql:16

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

ghcr.io/cloudnative-pg/postgresql:18.4

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

ghcr.io/cloudnative-pg/postgresql:17.4

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

ghcr.io/cloudnative-pg/postgresql:15.19

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

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

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

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

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