镜像构建历史
# 2026-11-23 16:10:48 0.00B 指定运行容器时使用的用户
USER 26
# 2026-11-23 16:10:48 144.26MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=18.7 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.20.1 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends build-essential python3-dev python3-pip python3-psycopg2 && pip3 install --no-cache-dir --ignore-requires-python 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 python3-pip && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* # buildkit
# 2026-11-23 16:10:23 0.00B 指定运行容器时使用的用户
USER root
# 2026-11-23 16:10:23 0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
# 2026-11-23 16:10:23 0.00B 定义构建参数
ARG BARMAN_VERSION=3.20.1
# 2026-11-23 16:10:23 0.00B 指定运行容器时使用的用户
USER 26
# 2026-11-23 16:10:23 419.47MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=18.7 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
# 2026-11-23 16:10:15 0.00B 指定运行容器时使用的用户
USER root
# 2026-11-23 16:10:15 0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit
# 2026-11-23 16:10:15 0.00B 定义构建参数
ARG EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots
# 2026-11-23 16:10:15 0.00B 指定运行容器时使用的用户
USER 26
# 2026-11-23 16:10:15 1.97KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.7 PG_MAJOR=18 /bin/sh -c usermod -u 26 postgres # buildkit
# 2026-11-23 16:10:15 191.14MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.7 PG_MAJOR=18 /bin/sh -c apt-get update && apt-get upgrade -y && 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-11-23 16:10:15 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/18/bin
# 2026-11-23 16:10:15 0.00B 定义构建参数
ARG PG_MAJOR=18
# 2026-11-23 16:10:15 0.00B 定义构建参数
ARG PG_VERSION=18.7
# 2026-11-05 05:23:39 78.86MB
# debian.sh --arch 'amd64' out/ 'trixie' '@1793827419'
镜像信息
{
"Id": "sha256:013ecc89e4534de03e06aeab7611345ccc1e8dfeee7b32377c1f9265e65d9d9b",
"RepoTags": [
"ghcr.io/cloudnative-pg/postgresql:18.7-system-trixie",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.7-system-trixie"
],
"RepoDigests": [
"ghcr.io/cloudnative-pg/postgresql@sha256:c437b7c6c00aa7e66f5d6de1dd83602391fdebd4ff776ffb1ab7aaba5e7351ad",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:ff0c974ae09c817da5269bb1174b730f401206bd39665e3ce123a893613f2f01"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2026-11-23T08:10:48.341376356Z",
"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:a72b4433de1cf7d6bae0c4cee74d0547f58601a643b3375f070c51600d63b6b2",
"org.opencontainers.image.base.name": "docker.io/library/debian:trixie-slim",
"org.opencontainers.image.created": "2026-11-23T08:09:50Z",
"org.opencontainers.image.description": "A system PostgreSQL 18.7 container image",
"org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "f717faecf9c35847402333b1007320f728c74cee",
"org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.title": "CloudNativePG PostgreSQL 18.7 system",
"org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.vendor": "The CloudNativePG Contributors",
"org.opencontainers.image.version": "18.7"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 833731990,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/27f08e1ab4247f4001fd3f4cb0c180413909fdd9923e7ef056a160aafffd957c/diff:/var/lib/docker/overlay2/6480998c07e547047aaa0a6769bb00793370c05a9c4f30be1e1a8c4010f8f550/diff:/var/lib/docker/overlay2/c3b8dca853fac1868ef82c4a32bc5d4823b38f9b076984aaa5e43c57a2176571/diff:/var/lib/docker/overlay2/aac50f783aa42778cd21bccfb53e18abc1f770c60dd970ff909040d0f001596a/diff",
"MergedDir": "/var/lib/docker/overlay2/e63ee931d526e55d0b2a84ea80e676ee0dafa62f13531e6292c71a4e957b1960/merged",
"UpperDir": "/var/lib/docker/overlay2/e63ee931d526e55d0b2a84ea80e676ee0dafa62f13531e6292c71a4e957b1960/diff",
"WorkDir": "/var/lib/docker/overlay2/e63ee931d526e55d0b2a84ea80e676ee0dafa62f13531e6292c71a4e957b1960/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:dd57f90311a2567b55ff22eeacff1602fd04ad7566e315957731359eab173b90",
"sha256:5c05faa8f3801ade62f9c062a3cece6527c0336d0ac7c231b7494bbf1334d444",
"sha256:0e68231749d3b84fcd1ee449f9fb8baffe53ef76fba25a7dfb149c1215d4d8cb",
"sha256:59d3718a8b6888a72bdf62e6b019e5a5a7322ba465e75b21819daf12e26f5ac7",
"sha256:5ab4fc7e876a22e63d71d65006bad2c6caef9c8f0bfcc38dd30f917b2410ec59"
]
},
"Metadata": {
"LastTagTime": "2026-11-25T11:53:27.220976647+08:00"
}
}