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

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

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

源镜像 ghcr.io/cloudnative-pg/postgresql:17
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:17
镜像ID sha256:f0e566143501f54fdd854b84040fa52d0d73b363201fe838141944318a27e0e2
镜像TAG 17
大小 742.62MB
镜像源 ghcr.io
CMD bash
启动入口
工作目录
OS/平台 linux/amd64
浏览量 25 次
贡献者
镜像创建 2025-10-27T08:10:15.682439269Z
同步时间 2025-10-29 14:41
更新时间 2025-10-31 05:15
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/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:36Z: org.opencontainers.image.created A system PostgreSQL 17.6 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 17.6 system: org.opencontainers.image.title https://github.com/cloudnative-pg/postgres-containers: org.opencontainers.image.url The CloudNativePG Contributors: org.opencontainers.image.vendor 17.6: org.opencontainers.image.version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


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

镜像信息

{
    "Id": "sha256:f0e566143501f54fdd854b84040fa52d0d73b363201fe838141944318a27e0e2",
    "RepoTags": [
        "ghcr.io/cloudnative-pg/postgresql:17",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:17"
    ],
    "RepoDigests": [
        "ghcr.io/cloudnative-pg/postgresql@sha256:c661099d1296a1e2348e3f9a730688f019260d01781a0196e4ed3fb578525215",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:7fb1f4f8ed899994e9a7e1666e09845473b4a2a5c6f6fd631644ad66b361c6d1"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-10-27T08:10:15.682439269Z",
    "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/17/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:36Z",
            "org.opencontainers.image.description": "A system PostgreSQL 17.6 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 17.6 system",
            "org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.vendor": "The CloudNativePG Contributors",
            "org.opencontainers.image.version": "17.6"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 742624856,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/6907b1960268494d6877734947ddb56a4e3edc52b5faec9979b22a191fdc10e5/diff:/var/lib/docker/overlay2/f90a1334d5a15cd67196774c4b39e1276ad15032b13f5cbe0b33eaf8b0c5a48a/diff:/var/lib/docker/overlay2/2dd37cbc54ad8bdc6c8800c9a4280c458ea0a750aaadd176c714f54e1e4964f1/diff:/var/lib/docker/overlay2/f39c2ab944ccf50fdbd6b2cccc75aa08d58863a901ed4c9687846683173858a2/diff",
            "MergedDir": "/var/lib/docker/overlay2/61f57c1fcb060d17f7b28664e2d972f5ba21d0b42bc331a53631de30b9dff0dc/merged",
            "UpperDir": "/var/lib/docker/overlay2/61f57c1fcb060d17f7b28664e2d972f5ba21d0b42bc331a53631de30b9dff0dc/diff",
            "WorkDir": "/var/lib/docker/overlay2/61f57c1fcb060d17f7b28664e2d972f5ba21d0b42bc331a53631de30b9dff0dc/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:584a83027a87baa03abecf175bc8b63c45f7397cc88438b6a921f1558ba8c884",
            "sha256:762fe4581161ff7fda0606e9e36ae8f4b759c9e21cc6541da366de2a65a5b207",
            "sha256:c299063a961af84eb7408c30926fe48c492fa70a24a04da4505e6fc75e26e720",
            "sha256:1d4d390b33349fd692c0524b2013bc8040bb3084c438b994260c41a1b5933983",
            "sha256:bbb906d7c99775f8f7eb366d5f18e4349e79458dd0849478a29e733a9cb06a61"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-10-29T14:41:00.013284913+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