镜像构建历史
# 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"
}
}