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

ghcr.io/cloudnative-pg/postgresql:18.0 - 国内下载镜像源 浏览次数:12 阿白 贡献同步 温馨提示: 这是一个 linux/arm64 系统架构镜像

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

源镜像 ghcr.io/cloudnative-pg/postgresql:18.0
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.0-linuxarm64
镜像ID sha256:795028fb14b4cedf652121573a42f0dc1d060a1f0419a0d10381e7fd1d56d49f
镜像TAG 18.0-linuxarm64
大小 722.93MB
镜像源 ghcr.io
CMD bash
启动入口
工作目录
OS/平台 linux/arm64
浏览量 12 次
贡献者
avatar
阿白
镜像创建 2025-11-10T08:22:40.226338922Z
同步时间 2026-03-08 00:42
环境变量
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:75e0b7a6158b4cc911d4be07d9f6b8a65254eb8c58df14023c3da5c462335593: org.opencontainers.image.base.digest docker.io/library/debian:bullseye-slim: org.opencontainers.image.base.name 2025-11-10T08:07:23Z: org.opencontainers.image.created A system PostgreSQL 18.0 container image: org.opencontainers.image.description https://github.com/cloudnative-pg/postgres-containers: org.opencontainers.image.documentation Apache-2.0: org.opencontainers.image.licenses ad091f4dd45ce5496da3b083dc13109fa310f57a: org.opencontainers.image.revision https://github.com/cloudnative-pg/postgres-containers: org.opencontainers.image.source CloudNativePG PostgreSQL 18.0 system: org.opencontainers.image.title https://github.com/cloudnative-pg/postgres-containers: org.opencontainers.image.url The CloudNativePG Contributors: org.opencontainers.image.vendor 18.0: org.opencontainers.image.version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2025-11-10 16:22:40  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2025-11-10 16:22:40  130.39MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=18.0 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.16.2 /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-11-10 16:15:34  0.00B 指定运行容器时使用的用户
USER root
                        
# 2025-11-10 16:15:34  0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
                        
# 2025-11-10 16:15:34  0.00B 定义构建参数
ARG BARMAN_VERSION=3.16.2
                        
# 2025-11-10 16:15:34  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2025-11-10 16:15:34  385.20MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=18.0 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
                        
# 2025-11-10 16:13:47  0.00B 指定运行容器时使用的用户
USER root
                        
# 2025-11-10 16:13:47  0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit
                        
# 2025-11-10 16:13:47  0.00B 定义构建参数
ARG EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots
                        
# 2025-11-10 16:13:47  0.00B 指定运行容器时使用的用户
USER 26
                        
# 2025-11-10 16:13:47  2.00KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.0 PG_MAJOR=18 /bin/sh -c usermod -u 26 postgres # buildkit
                        
# 2025-11-10 16:13:47  132.85MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.0 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
                        
# 2025-11-10 16:13:47  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/18/bin
                        
# 2025-11-10 16:13:47  0.00B 定义构建参数
ARG PG_MAJOR=18
                        
# 2025-11-10 16:13:47  0.00B 定义构建参数
ARG PG_VERSION=18.0
                        
# 2025-11-04 04:44:10  74.50MB 
# debian.sh --arch 'arm64' out/ 'bullseye' '@1762202650'
                        
                    

镜像信息

{
    "Id": "sha256:795028fb14b4cedf652121573a42f0dc1d060a1f0419a0d10381e7fd1d56d49f",
    "RepoTags": [
        "ghcr.io/cloudnative-pg/postgresql:18.0",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.0-linuxarm64"
    ],
    "RepoDigests": [
        "ghcr.io/cloudnative-pg/postgresql@sha256:f06cae6ae14e2f101392130dce800b504bf9c5110b5db5fc0266782464882dbb",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:d9308127352cb922f1e0dbe39e6a8dad879cbf3511a54211ea1e4b1a02a43cd6"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-11-10T08:22:40.226338922Z",
    "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:75e0b7a6158b4cc911d4be07d9f6b8a65254eb8c58df14023c3da5c462335593",
            "org.opencontainers.image.base.name": "docker.io/library/debian:bullseye-slim",
            "org.opencontainers.image.created": "2025-11-10T08:07:23Z",
            "org.opencontainers.image.description": "A system PostgreSQL 18.0 container image",
            "org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.revision": "ad091f4dd45ce5496da3b083dc13109fa310f57a",
            "org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.title": "CloudNativePG PostgreSQL 18.0 system",
            "org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
            "org.opencontainers.image.vendor": "The CloudNativePG Contributors",
            "org.opencontainers.image.version": "18.0"
        }
    },
    "Architecture": "arm64",
    "Os": "linux",
    "Size": 722932909,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/9626d8470060c4de691ad1d8f1ba7414b75068901c404a7b91b882e88dcf0620/diff:/var/lib/docker/overlay2/9a6bf080c57bc192046c250d038910bfd62b637c37d502e09aa431e8c088f98a/diff:/var/lib/docker/overlay2/a7d3c6b253e0d7ef09b42d8cf116def46c5b91b202b233d55f4f6b2065cef44d/diff:/var/lib/docker/overlay2/53750f5af99dd6c544dd39919398d4dd9e2b3cf0ac7a1aeb74aa1067ec48fe2d/diff",
            "MergedDir": "/var/lib/docker/overlay2/5d696e8bbd9d0f5ffab94282f53dbf5eb9c2ff44cc8ec449116abdb868ab38bb/merged",
            "UpperDir": "/var/lib/docker/overlay2/5d696e8bbd9d0f5ffab94282f53dbf5eb9c2ff44cc8ec449116abdb868ab38bb/diff",
            "WorkDir": "/var/lib/docker/overlay2/5d696e8bbd9d0f5ffab94282f53dbf5eb9c2ff44cc8ec449116abdb868ab38bb/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:b4f209c183840db1f5777d5c89257be2e89ec66af059e1cf7e5cbac801effd40",
            "sha256:80125bdafe9895ccff2fa2f49de4343d990d851148d05063a5e1a19c7207ea7c",
            "sha256:b033b39a381477b9237aeed3a0905da9b437434f45a3d6ffd9e0a0737a19ce2a",
            "sha256:13256743db8c2aa74556c9c67a7ed576dc92c685d8ba5331476f3493254dcc19",
            "sha256:3b9cc17c4f32cc875664fd7b36ec565374233e00e65e52e104131c5367d42846"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-03-08T00:41:42.517251125+08:00"
    }
}

更多版本

ghcr.io/cloudnative-pg/postgresql:15

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

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

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

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

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

ghcr.io/cloudnative-pg/postgresql:16

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

ghcr.io/cloudnative-pg/postgresql:17

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

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

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

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

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

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

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

ghcr.io/cloudnative-pg/postgresql:15.17

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

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

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

ghcr.io/cloudnative-pg/postgresql:18.0

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