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

ghcr.io/cloudnative-pg/postgresql:18.4 - 国内下载镜像源 浏览次数:25

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

源镜像 ghcr.io/cloudnative-pg/postgresql:18.4
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.4
镜像ID sha256:321b98b1f10f092a5542fada25e17b933a03d1a6640081bf69586e9ef193a5cc
镜像TAG 18.4
大小 745.07MB
镜像源 ghcr.io
CMD bash
启动入口
工作目录
OS/平台 linux/amd64
浏览量 25 次
贡献者
镜像创建 2026-05-18T09:15:26.430018325Z
同步时间 2026-05-22 09:41
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/18/bin PIP_BREAK_SYSTEM_PACKAGES=1
镜像标签
The CloudNativePG Contributors: org.opencontainers.image.authors sha256:89400a8b54c93d61bb2f971f1ada1d907b344f2422afabf23699fdf1f162faa0: org.opencontainers.image.base.digest docker.io/library/debian:bullseye-slim: org.opencontainers.image.base.name 2026-05-18T09:14:17Z: 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 76c7482114ea980f65972b665c0adf64507f58ac: 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

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

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

镜像构建历史


# 2026-05-18 17:15:26  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-05-18 17:15:26  136.79MB 执行命令并创建新的镜像层
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.18.0 /bin/sh -c apt-get update && 	apt-get install -y --no-install-recommends 		build-essential python3-dev 		python3-pip 		python3-psycopg2 		python3-setuptools 	&& 	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-05-18 17:14:51  0.00B 指定运行容器时使用的用户
USER root
                        
# 2026-05-18 17:14:51  0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
                        
# 2026-05-18 17:14:51  0.00B 定义构建参数
ARG BARMAN_VERSION=3.18.0
                        
# 2026-05-18 17:14:51  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-05-18 17:14:51  393.29MB 执行命令并创建新的镜像层
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-05-18 17:14:39  0.00B 指定运行容器时使用的用户
USER root
                        
# 2026-05-18 17:14:39  0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit
                        
# 2026-05-18 17:14:39  0.00B 定义构建参数
ARG EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots
                        
# 2026-05-18 17:14:39  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-05-18 17:14:39  2.00KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.4 PG_MAJOR=18 /bin/sh -c usermod -u 26 postgres # buildkit
                        
# 2026-05-18 17:14:39  134.31MB 执行命令并创建新的镜像层
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-05-18 17:14:39  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/18/bin
                        
# 2026-05-18 17:14:39  0.00B 定义构建参数
ARG PG_MAJOR=18
                        
# 2026-05-18 17:14:39  0.00B 定义构建参数
ARG PG_VERSION=18.4
                        
# 2026-05-05 08:00:00  80.68MB 
# debian.sh --arch 'amd64' out/ 'bullseye' '@1777939200'
                        
                    

镜像信息

{
    "Id": "sha256:321b98b1f10f092a5542fada25e17b933a03d1a6640081bf69586e9ef193a5cc",
    "RepoTags": [
        "ghcr.io/cloudnative-pg/postgresql:18.4",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.4"
    ],
    "RepoDigests": [
        "ghcr.io/cloudnative-pg/postgresql@sha256:7a9a68272eb5f192c5826fdd72b1ebc81c185fea21678993c5583610c7e59739",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:77edf6d6cc703ac567945dd9516884eac7b60e42ac0bdd501d83030281e66c0b"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-05-18T09:15:26.430018325Z",
    "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:89400a8b54c93d61bb2f971f1ada1d907b344f2422afabf23699fdf1f162faa0",
            "org.opencontainers.image.base.name": "docker.io/library/debian:bullseye-slim",
            "org.opencontainers.image.created": "2026-05-18T09:14:17Z",
            "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": "76c7482114ea980f65972b665c0adf64507f58ac",
            "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": 745069239,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/bea6b236069649ee34b665030d6d78c477bc727882a87c7a61ba09f14d539763/diff:/var/lib/docker/overlay2/5679598118e13d9b296e91f4871af7681913669d443d46ce19a8375073310fa6/diff:/var/lib/docker/overlay2/2ae84a84debda6f4420e274c2f269e63ff8c095da4af6a5d64fc7241263692f0/diff:/var/lib/docker/overlay2/b78cb6d1c772a93f3c5b03ffe602b4ffc91f41606794a6ecdd5d623d51bd10fe/diff",
            "MergedDir": "/var/lib/docker/overlay2/b1bdf12da3f3df3f2b30df3d71702fd2b105e36858430eed62d68b5a0a7141a3/merged",
            "UpperDir": "/var/lib/docker/overlay2/b1bdf12da3f3df3f2b30df3d71702fd2b105e36858430eed62d68b5a0a7141a3/diff",
            "WorkDir": "/var/lib/docker/overlay2/b1bdf12da3f3df3f2b30df3d71702fd2b105e36858430eed62d68b5a0a7141a3/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:589c64d8a13b342090531590270a0a6b90b434e2286c098f72024f14cce16ebd",
            "sha256:98889b14de0cbbaa4ec27e0126cc2bff8794528e05ece851d9e1d4ca65c70970",
            "sha256:972e6e5e65f29e5194467ebcb0ff6b6dd90fa4a97829dd2a499d01fabfc3e0cf",
            "sha256:145c3eb597eaa266e8703b52b1610128bf14fa59bb1afa2d1064f09a62bb52ed",
            "sha256:c808a3e014d2a5f1359ef5c3d6e7fa8ac2612071be94703c478f562d59884b6a"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-05-22T09:40:37.688035401+08:00"
    }
}

更多版本

ghcr.io/cloudnative-pg/postgresql:15

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

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

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

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

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

ghcr.io/cloudnative-pg/postgresql:16

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

ghcr.io/cloudnative-pg/postgresql:17

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

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

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

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

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

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

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

ghcr.io/cloudnative-pg/postgresql:15.17

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

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

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

ghcr.io/cloudnative-pg/postgresql:18.0

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

ghcr.io/cloudnative-pg/postgresql:18.0

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

ghcr.io/cloudnative-pg/postgresql:16.13

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

ghcr.io/cloudnative-pg/postgresql:14.22

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

ghcr.io/cloudnative-pg/postgresql:13.22

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

ghcr.io/cloudnative-pg/postgresql:16

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

ghcr.io/cloudnative-pg/postgresql:18.4

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