镜像构建历史
# 2026-08-13 15:38:21 0.00B 指定运行容器时使用的用户
USER 26
# 2026-08-13 15:38:21 152.32MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=18.4 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.19.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 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 && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* # buildkit
# 2026-08-13 15:37:57 0.00B 指定运行容器时使用的用户
USER root
# 2026-08-13 15:37:57 0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
# 2026-08-13 15:37:57 0.00B 定义构建参数
ARG BARMAN_VERSION=3.19.1
# 2026-08-13 15:37:57 0.00B 指定运行容器时使用的用户
USER 26
# 2026-08-13 15:37:57 419.23MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=18.4 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-08-13 15:37:49 0.00B 指定运行容器时使用的用户
USER root
# 2026-08-13 15:37:49 0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit
# 2026-08-13 15:37:49 0.00B 定义构建参数
ARG EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots
# 2026-08-13 15:37:49 0.00B 指定运行容器时使用的用户
USER 26
# 2026-08-13 15:37:49 1.82KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.4 PG_MAJOR=18 /bin/sh -c usermod -u 26 postgres # buildkit
# 2026-08-13 15:37:48 153.13MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=18.4 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
# 2026-08-13 15:37:48 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/18/bin
# 2026-08-13 15:37:48 0.00B 定义构建参数
ARG PG_MAJOR=18
# 2026-08-13 15:37:48 0.00B 定义构建参数
ARG PG_VERSION=18.4
# 2026-08-03 08:00:00 78.62MB
# debian.sh --arch 'amd64' out/ 'trixie' '@1785715200'
镜像信息
{
"Id": "sha256:c90b4f58107ada70a298f009b4f5c723525ce5ea41ce55ca092c113a23eced1e",
"RepoTags": [
"ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:18.4-system-trixie"
],
"RepoDigests": [
"ghcr.io/cloudnative-pg/postgresql@sha256:42708a75345b7a48fdd9257b071830783a97fd228529196b6313187a7198e185",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:407fecedb22cfecfeb5813c6fa47d30c21455156fa131696e9ff766a2da4dd5b"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2026-08-13T07:38:21.119689853Z",
"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:3a39a0592364683e6bab97937b72cad5a8fa6dcbbee90edb3bb48c7f8e94f258",
"org.opencontainers.image.base.name": "docker.io/library/debian:trixie-slim",
"org.opencontainers.image.created": "2026-08-13T07:37:26Z",
"org.opencontainers.image.description": "A system PostgreSQL 18.4 container image",
"org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "46644c8b24b377df4f386f1e51e15a8b9fdf36c3",
"org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.title": "CloudNativePG PostgreSQL 18.4 system",
"org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.vendor": "The CloudNativePG Contributors",
"org.opencontainers.image.version": "18.4"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 803306089,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/f5c9d72660c215e4dd6242b5d711f1704869e3751bb129ff7ab90d75ae77b67f/diff:/var/lib/docker/overlay2/68c0c33647c0b24b13dbfcae4aff1111b3e15961248efc737c13e263d11cf066/diff:/var/lib/docker/overlay2/12b7d37fc719f7aecf1c24278afbef4c2292ab27bdd58786d1cc8df65cd1c7c9/diff:/var/lib/docker/overlay2/faff4113146787f7bb5a6ce2a00d7d8484098129ae09c7d0ce5acd028427696c/diff",
"MergedDir": "/var/lib/docker/overlay2/ee6595fe5db19ef0b5faec6c57bbe151210f6a693cdb8d24b837639a73de5b89/merged",
"UpperDir": "/var/lib/docker/overlay2/ee6595fe5db19ef0b5faec6c57bbe151210f6a693cdb8d24b837639a73de5b89/diff",
"WorkDir": "/var/lib/docker/overlay2/ee6595fe5db19ef0b5faec6c57bbe151210f6a693cdb8d24b837639a73de5b89/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:6f94328331290cbd81edab450664d42da7b64c191416c9346cd5d28c84f76035",
"sha256:d68466b0aa93cbf34dc86127ae90ba07b82f38e694c5739a164a75da462baa68",
"sha256:118e951549e1b02518751cafffff13658740ee09cb71237fc806990a7c45efe0",
"sha256:2173dc37b377b03cc76e3cf67be09b3be69acf2f890f16d66a03f78607ffd2f5",
"sha256:ae46e6d498504a66b105515d91480676f9fdf3a5f1bfe174693e223238102fc8"
]
},
"Metadata": {
"LastTagTime": "2026-09-02T16:55:27.981635783+08:00"
}
}