广告图片

ghcr.io/cloudnative-pg/postgresql:16 linux/arm64

ghcr.io/cloudnative-pg/postgresql:16 - 国内下载镜像源 浏览次数:25 温馨提示: 这是一个 linux/arm64 系统架构镜像

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

源镜像 ghcr.io/cloudnative-pg/postgresql:16
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:16-linuxarm64
镜像ID sha256:86ebdcbfd9bca5009331738346d24dadda4cd2774d1b80899595ab0120155ab7
镜像TAG 16-linuxarm64
大小 747.51MB
镜像源 ghcr.io
CMD bash
启动入口
工作目录
OS/平台 linux/arm64
浏览量 25 次
贡献者
镜像创建 2026-04-20T09:01:14.644347706Z
同步时间 2026-04-27 14:25
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin PIP_BREAK_SYSTEM_PACKAGES=1
镜像标签
The CloudNativePG Contributors: org.opencontainers.image.authors sha256:4333240150a6924f878e05ec2c998aec95238010e0e4d2fec6161c90128c4652: org.opencontainers.image.base.digest docker.io/library/debian:bullseye-slim: org.opencontainers.image.base.name 2026-04-20T08:52:24Z: org.opencontainers.image.created A system PostgreSQL 16.13 container image: org.opencontainers.image.description https://github.com/cloudnative-pg/postgres-containers: org.opencontainers.image.documentation Apache-2.0: org.opencontainers.image.licenses 2898836314d7846908a475d3208200c31d4f7fba: org.opencontainers.image.revision https://github.com/cloudnative-pg/postgres-containers: org.opencontainers.image.source CloudNativePG PostgreSQL 16.13 system: org.opencontainers.image.title https://github.com/cloudnative-pg/postgres-containers: org.opencontainers.image.url The CloudNativePG Contributors: org.opencontainers.image.vendor 16.13: org.opencontainers.image.version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2026-04-20 17:01:14  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-04-20 17:01:14  131.85MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=16.13 PG_MAJOR=16 EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= BARMAN_VERSION=3.17.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-04-20 16:56:52  0.00B 指定运行容器时使用的用户
USER root
                        
# 2026-04-20 16:56:52  0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
                        
# 2026-04-20 16:56:52  0.00B 定义构建参数
ARG BARMAN_VERSION=3.17.0
                        
# 2026-04-20 16:56:52  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-04-20 16:56:52  222.16MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=16.13 PG_MAJOR=16 EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-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-04-20 16:56:10  0.00B 指定运行容器时使用的用户
USER root
                        
# 2026-04-20 16:56:10  0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=
                        
# 2026-04-20 16:56:10  0.00B 定义构建参数
ARG EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-pg-failover-slots
                        
# 2026-04-20 16:56:10  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2026-04-20 16:56:10  2.00KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=16.13 PG_MAJOR=16 /bin/sh -c usermod -u 26 postgres # buildkit
                        
# 2026-04-20 16:56:09  319.00MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=16.13 PG_MAJOR=16 /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-04-20 16:56:09  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin
                        
# 2026-04-20 16:56:09  0.00B 定义构建参数
ARG PG_MAJOR=16
                        
# 2026-04-20 16:56:09  0.00B 定义构建参数
ARG PG_VERSION=16.13
                        
# 2026-02-23 08:00:00  74.50MB 
# debian.sh --arch 'arm64' out/ 'bullseye' '@1771804800'
                        
                    

镜像信息

{
    "Id": "sha256:86ebdcbfd9bca5009331738346d24dadda4cd2774d1b80899595ab0120155ab7",
    "RepoTags": [
        "ghcr.io/cloudnative-pg/postgresql:16",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:16-linuxarm64"
    ],
    "RepoDigests": [
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:d06fe2f906116d6e1a0a88e94f0130aa53d5d9d550face7525ee64210281bbc6"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-04-20T09:01:14.644347706Z",
    "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/16/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:4333240150a6924f878e05ec2c998aec95238010e0e4d2fec6161c90128c4652",
            "org.opencontainers.image.base.name": "docker.io/library/debian:bullseye-slim",
            "org.opencontainers.image.created": "2026-04-20T08:52:24Z",
            "org.opencontainers.image.description": "A system PostgreSQL 16.13 container image",
            "org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.revision": "2898836314d7846908a475d3208200c31d4f7fba",
            "org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.title": "CloudNativePG PostgreSQL 16.13 system",
            "org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.vendor": "The CloudNativePG Contributors",
            "org.opencontainers.image.version": "16.13"
        }
    },
    "Architecture": "arm64",
    "Os": "linux",
    "Size": 747511199,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/3d80ff5dca739b2854701cde8732a8f28bbb4186d675853ca73d9aee80a46ce4/diff:/var/lib/docker/overlay2/5d802106db679a78c32989caeaede162139a5e6a6b7c186bff0e84d67f8fffad/diff:/var/lib/docker/overlay2/307fbaea688444967351bd57f4378a894a24118b237a96e440fa8d56cdd62e3e/diff:/var/lib/docker/overlay2/c4e95387877f70527cd6e3096e6c7b339e90c4718f2cf15c50fbd80f908b2268/diff",
            "MergedDir": "/var/lib/docker/overlay2/25ef762d68b93d4d5a7824a702298ca14ab9e8df949463d8c442c1424417b42c/merged",
            "UpperDir": "/var/lib/docker/overlay2/25ef762d68b93d4d5a7824a702298ca14ab9e8df949463d8c442c1424417b42c/diff",
            "WorkDir": "/var/lib/docker/overlay2/25ef762d68b93d4d5a7824a702298ca14ab9e8df949463d8c442c1424417b42c/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:4fd422ac644ac7b07966e8b59732b8756d5c57a0b157c3c144b4ba0242673433",
            "sha256:faa11cbfc84d62ae2bd0f9c86dd8db4e6c84da939cb6c3211570297dc9b61e7a",
            "sha256:c67df9c5249f0322e556f0b67c82bd2e1b4a64b8bd7b98f4c8c495f8ee0c7ef9",
            "sha256:474ae1ac275ca4506816a1eb256c6ae942f1f6e5b18eb96d3c2074dca4331950",
            "sha256:147fd58e46e2b2572f75a5473787dfdfefd41c8c3118ef4ac3618eaf0d3bdb44"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-04-27T14:24:58.886902048+08:00"
    }
}

更多版本

ghcr.io/cloudnative-pg/postgresql:15

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

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

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

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

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

ghcr.io/cloudnative-pg/postgresql:16

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

ghcr.io/cloudnative-pg/postgresql:17

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

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

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

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

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

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

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

ghcr.io/cloudnative-pg/postgresql:15.17

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

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

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

ghcr.io/cloudnative-pg/postgresql:18.0

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

ghcr.io/cloudnative-pg/postgresql:18.0

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

ghcr.io/cloudnative-pg/postgresql:16.13

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

ghcr.io/cloudnative-pg/postgresql:14.22

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

ghcr.io/cloudnative-pg/postgresql:13.22

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

ghcr.io/cloudnative-pg/postgresql:16

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