镜像构建历史
# 2025-11-10 16:23:23 0.00B 指定运行容器时使用的用户
USER 26
# 2025-11-10 16:23:23 156.88MB 执行命令并创建新的镜像层
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:17:32 0.00B 指定运行容器时使用的用户
USER root
# 2025-11-10 16:17:32 0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
# 2025-11-10 16:17:32 0.00B 定义构建参数
ARG BARMAN_VERSION=3.16.2
# 2025-11-10 16:17:32 0.00B 指定运行容器时使用的用户
USER 26
# 2025-11-10 16:17:32 411.88MB 执行命令并创建新的镜像层
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:15:35 0.00B 指定运行容器时使用的用户
USER root
# 2025-11-10 16:15:35 0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit
# 2025-11-10 16:15:35 0.00B 定义构建参数
ARG EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots
# 2025-11-10 16:15:35 0.00B 指定运行容器时使用的用户
USER 26
# 2025-11-10 16:15:35 1.82KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.0 PG_MAJOR=18 /bin/sh -c usermod -u 26 postgres # buildkit
# 2025-11-10 16:15:35 161.61MB 执行命令并创建新的镜像层
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:15:35 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:15:35 0.00B 定义构建参数
ARG PG_MAJOR=18
# 2025-11-10 16:15:35 0.00B 定义构建参数
ARG PG_VERSION=18.0
# 2025-11-04 04:44:10 100.56MB
# debian.sh --arch 'arm64' out/ 'trixie' '@1762202650'
镜像信息
{
"Id": "sha256:997782b26f8a0304913590cf9f302ab3d674cbd93775b8060a9006b4bc5c017f",
"RepoTags": [
"ghcr.io/cloudnative-pg/postgresql:18.0-system-trixie",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.0-system-trixie-linuxarm64"
],
"RepoDigests": [
"ghcr.io/cloudnative-pg/postgresql@sha256:8221c6455c5b90bcdc739ebf2bb977fcb9525db4f3ff2339dd88054f920b1413",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:7e8b2c99d5d1adc664104c99eaee3aaf7108e339f946745f4e89a3863e2f502e"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-11-10T08:23:23.900698778Z",
"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:a347fd7510ee31a84387619a492ad6c8eb0af2f2682b916ff3e643eb076f925a",
"org.opencontainers.image.base.name": "docker.io/library/debian:trixie-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": 830932418,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/4a51afd739cc4a81c66807e32c31b64dd4692aa336f81b979961686bf518f5a0/diff:/var/lib/docker/overlay2/9b68776335d2ca9f37e939aa077a503086e8bbac84ff728a2ca7bfea9bd7527b/diff:/var/lib/docker/overlay2/1ce398a4a875732a2669c7aae15c94075897562e133c7055b76c5ac78342a16c/diff:/var/lib/docker/overlay2/3356d3ef6dec0661f8bdf5e3d2f839bda281a7e432d47fc93f1784a27c13e7d1/diff",
"MergedDir": "/var/lib/docker/overlay2/825ca5acbe9da94756c81a4d0d46a87a73a04d83a6e6305e86e86ad68cea8bdf/merged",
"UpperDir": "/var/lib/docker/overlay2/825ca5acbe9da94756c81a4d0d46a87a73a04d83a6e6305e86e86ad68cea8bdf/diff",
"WorkDir": "/var/lib/docker/overlay2/825ca5acbe9da94756c81a4d0d46a87a73a04d83a6e6305e86e86ad68cea8bdf/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:4819483eb3e46dfb249c0b42f3138e2ec3bdcb7b412e4bca96bb9967a86f6c7f",
"sha256:1858b2ea5e82021c0852f3ce72a8707c6b298e2aa77711e10c2d187f96a2df53",
"sha256:177f1eb766cb9280f0c1f30c914318d5c44dcddb2584e59f17eb8053dfa94053",
"sha256:e7695b13509b77699488e55f04e2bb81d8ece9e392573f4c504565ae5a85c120",
"sha256:0352b4a2aa0aa3f6e75e77bdda2a5b5aa49c226b1b61817cc5d22563d1cc9509"
]
},
"Metadata": {
"LastTagTime": "2026-03-08T00:07:22.668881574+08:00"
}
}