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

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

这是一个 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
镜像ID sha256:bcc82dd6b1ff75af9aab2e45802d92c0caa219151a6391b2ec962ca8758cd435
镜像TAG 16
大小 740.81MB
镜像源 ghcr.io
CMD bash
启动入口
工作目录
OS/平台 linux/amd64
浏览量 27 次
贡献者
镜像创建 2025-10-27T08:09:59.695986593Z
同步时间 2025-10-28 20:47
更新时间 2025-10-31 07:01
环境变量
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:52927eff8153b563244f98cdc802ba97918afcdf67f9e4867cbf1f7afb3d147b: org.opencontainers.image.base.digest docker.io/library/debian:bullseye-slim: org.opencontainers.image.base.name 2025-10-27T08:07:24Z: org.opencontainers.image.created A system PostgreSQL 16.10 container image: org.opencontainers.image.description https://github.com/cloudnative-pg/postgres-containers: org.opencontainers.image.documentation Apache-2.0: org.opencontainers.image.licenses d10522f3f7a96f9dbed20f5bba5d8c4c97dc56b4: org.opencontainers.image.revision https://github.com/cloudnative-pg/postgres-containers: org.opencontainers.image.source CloudNativePG PostgreSQL 16.10 system: org.opencontainers.image.title https://github.com/cloudnative-pg/postgres-containers: org.opencontainers.image.url The CloudNativePG Contributors: org.opencontainers.image.vendor 16.10: org.opencontainers.image.version

Docker拉取命令

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

Containerd拉取命令

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

镜像构建历史


# 2025-10-27 16:09:59  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2025-10-27 16:09:59  133.66MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=16.10 PG_MAJOR=16 EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= BARMAN_VERSION=3.16.1 /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} && 	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
                        
# 2025-10-27 16:08:42  0.00B 指定运行容器时使用的用户
USER root
                        
# 2025-10-27 16:08:42  0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
                        
# 2025-10-27 16:08:42  0.00B 定义构建参数
ARG BARMAN_VERSION=3.16.1
                        
# 2025-10-27 16:08:42  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2025-10-27 16:08:42  222.22MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=16.10 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
                        
# 2025-10-27 16:08:20  0.00B 指定运行容器时使用的用户
USER root
                        
# 2025-10-27 16:08:20  0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=
                        
# 2025-10-27 16:08:20  0.00B 定义构建参数
ARG EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-pg-failover-slots
                        
# 2025-10-27 16:08:20  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2025-10-27 16:08:20  2.00KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=16.10 PG_MAJOR=16 /bin/sh -c usermod -u 26 postgres # buildkit
                        
# 2025-10-27 16:08:20  304.26MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=16.10 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
                        
# 2025-10-27 16:08:20  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin
                        
# 2025-10-27 16:08:20  0.00B 定义构建参数
ARG PG_MAJOR=16
                        
# 2025-10-27 16:08:20  0.00B 定义构建参数
ARG PG_VERSION=16.10
                        
# 2025-10-20 08:00:00  80.67MB 
# debian.sh --arch 'amd64' out/ 'bullseye' '@1760918400'
                        
                    

镜像信息

{
    "Id": "sha256:bcc82dd6b1ff75af9aab2e45802d92c0caa219151a6391b2ec962ca8758cd435",
    "RepoTags": [
        "ghcr.io/cloudnative-pg/postgresql:16",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:16"
    ],
    "RepoDigests": [
        "ghcr.io/cloudnative-pg/postgresql@sha256:f5b92f1aa46002377ba0c2de97f354bf23d56412fc6073c590e234347528f00c",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:d107c4c0a261fbd078e89671667659f20ad6eebee8b0d19a7afe5de8842ce1da"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-10-27T08:09:59.695986593Z",
    "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:52927eff8153b563244f98cdc802ba97918afcdf67f9e4867cbf1f7afb3d147b",
            "org.opencontainers.image.base.name": "docker.io/library/debian:bullseye-slim",
            "org.opencontainers.image.created": "2025-10-27T08:07:24Z",
            "org.opencontainers.image.description": "A system PostgreSQL 16.10 container image",
            "org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.revision": "d10522f3f7a96f9dbed20f5bba5d8c4c97dc56b4",
            "org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.title": "CloudNativePG PostgreSQL 16.10 system",
            "org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.vendor": "The CloudNativePG Contributors",
            "org.opencontainers.image.version": "16.10"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 740807994,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/bc7f3a02a20d8e728b9fde0f7a4a9a85215baea0fbeb04549ca53e78ad774964/diff:/var/lib/docker/overlay2/58efa3178bc52e2896092078a3e58611d9337f255303df91d17c9c4e594361b3/diff:/var/lib/docker/overlay2/b358afd426520f15ac912538cf9d98167d0de75131e61590e9e25502baf02ecc/diff:/var/lib/docker/overlay2/f39c2ab944ccf50fdbd6b2cccc75aa08d58863a901ed4c9687846683173858a2/diff",
            "MergedDir": "/var/lib/docker/overlay2/6bc8dcb28c8d8fbb87b79cca9273bc4b34579990cc971470629e459fee2e6e9a/merged",
            "UpperDir": "/var/lib/docker/overlay2/6bc8dcb28c8d8fbb87b79cca9273bc4b34579990cc971470629e459fee2e6e9a/diff",
            "WorkDir": "/var/lib/docker/overlay2/6bc8dcb28c8d8fbb87b79cca9273bc4b34579990cc971470629e459fee2e6e9a/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:584a83027a87baa03abecf175bc8b63c45f7397cc88438b6a921f1558ba8c884",
            "sha256:f002f86c6920662c713a079ae9613086c7e3f0957cf705f8e6c98f5a8d263f3e",
            "sha256:1323488d6ee86af5b00c45f74e628b342a038dd75c5c689f4bb487aea4c50d5e",
            "sha256:e79539fe4157867c7ea71d20de6f8bb0490538fbcf3246e8119f7e55c19f599b",
            "sha256:b66124f49832e0d945d29e347b92ded114f3743fdd0c49f79851d2477e2dee14"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-10-28T20:47:10.252067824+08:00"
    }
}

更多版本

ghcr.io/cloudnative-pg/postgresql:15

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

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

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

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

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

ghcr.io/cloudnative-pg/postgresql:16

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

ghcr.io/cloudnative-pg/postgresql:17

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