镜像构建历史
# 2026-08-17 16:15:54 0.00B 指定运行容器时使用的用户
USER 26
# 2026-08-17 16:15:54 137.68MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=15.19 PG_MAJOR=15 EXTENSIONS=postgresql-15-pgaudit postgresql-15-pgvector postgresql-15-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= 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-17 16:15:20 0.00B 指定运行容器时使用的用户
USER root
# 2026-08-17 16:15:20 0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
# 2026-08-17 16:15:20 0.00B 定义构建参数
ARG BARMAN_VERSION=3.19.1
# 2026-08-17 16:15:20 0.00B 指定运行容器时使用的用户
USER 26
# 2026-08-17 16:15:20 222.25MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=15.19 PG_MAJOR=15 EXTENSIONS=postgresql-15-pgaudit postgresql-15-pgvector postgresql-15-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= /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-17 16:15:13 0.00B 指定运行容器时使用的用户
USER root
# 2026-08-17 16:15:13 0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=
# 2026-08-17 16:15:13 0.00B 定义构建参数
ARG EXTENSIONS=postgresql-15-pgaudit postgresql-15-pgvector postgresql-15-pg-failover-slots
# 2026-08-17 16:15:13 0.00B 指定运行容器时使用的用户
USER 26
# 2026-08-17 16:15:13 2.00KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=15.19 PG_MAJOR=15 /bin/sh -c usermod -u 26 postgres # buildkit
# 2026-08-17 16:15:13 302.47MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=15.19 PG_MAJOR=15 /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-17 16:15:13 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/15/bin
# 2026-08-17 16:15:13 0.00B 定义构建参数
ARG PG_MAJOR=15
# 2026-08-17 16:15:13 0.00B 定义构建参数
ARG PG_VERSION=15.19
# 2026-08-03 08:00:00 80.68MB
# debian.sh --arch 'amd64' out/ 'bullseye' '@1785715200'
镜像信息
{
"Id": "sha256:5a418e7557696ab2308a330dc1ff8d63d78df6722345b0ffb7a9ff2780527606",
"RepoTags": [
"ghcr.io/cloudnative-pg/postgresql:15.19",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.19"
],
"RepoDigests": [
"ghcr.io/cloudnative-pg/postgresql@sha256:cbab476b80bb605e9563a6ae9b0fa7fedc0e6fa923986a99c332fd740ec80611",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:f195fe8111a789385c17027010dcd3e87274f4177c63bdb241b1826e412cf8d1"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2026-08-17T08:15:54.558447924Z",
"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/15/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:f313b4bd62667092a59b3a664d7d3ab8b5e65f41675f48e81455a15dc5abe792",
"org.opencontainers.image.base.name": "docker.io/library/debian:bullseye-slim",
"org.opencontainers.image.created": "2026-08-17T08:14:47Z",
"org.opencontainers.image.description": "A system PostgreSQL 15.19 container image",
"org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "3817b6b2626264053ad8234628624f1d134267a9",
"org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.title": "CloudNativePG PostgreSQL 15.19 system",
"org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.vendor": "The CloudNativePG Contributors",
"org.opencontainers.image.version": "15.19"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 743088195,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/40cee11b84d8170ffd9c30df1d18ff0dab88564815f450cde0f2fcf1f3240e34/diff:/var/lib/docker/overlay2/eecc21101e2fe5023eb6330aba486ab9856e73b6deb6082f9a661cb0328db63c/diff:/var/lib/docker/overlay2/740ed8bfd6c33e026e54b99c9f54ac0515a2d13ddb7b499d62a77eb39927c2b5/diff:/var/lib/docker/overlay2/d455ec0520e19090cf357bb4045e9e0dc57997ea7c99d3c7564a70667471fe97/diff",
"MergedDir": "/var/lib/docker/overlay2/c65960fd34576af2d0291da610f3dce7eaa4039d219419f0c1824b5eb95b2aec/merged",
"UpperDir": "/var/lib/docker/overlay2/c65960fd34576af2d0291da610f3dce7eaa4039d219419f0c1824b5eb95b2aec/diff",
"WorkDir": "/var/lib/docker/overlay2/c65960fd34576af2d0291da610f3dce7eaa4039d219419f0c1824b5eb95b2aec/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:36952eceefb67987392fe5e6ba2db453c9b400cdcab2fce9b991a0c1fd9a1d32",
"sha256:2b16d8faf5729fac4b8a47932463f6d3613b800643cfbad2a6787a3fb5289a8d",
"sha256:fc6d198034dce994fba3966dbb67635b177cf2e0c95c3a3a49308e9a4cd7baec",
"sha256:864e8c94cba2d48c8dd22f2c612d87d4089de76a6a9dd69a820811ed20fa7944",
"sha256:debc4e40102a1f9f4525437b38876c8eaa6cc16f29a5782b728ebb99f6a809e3"
]
},
"Metadata": {
"LastTagTime": "2026-08-18T16:23:24.404263455+08:00"
}
}