镜像构建历史
# 2026-03-02 16:17:22 0.00B 指定运行容器时使用的用户
USER 26
# 2026-03-02 16:17:22 135.03MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=15.17 PG_MAJOR=15 EXTENSIONS=postgresql-15-pgaudit postgresql-15-pgvector postgresql-15-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= BARMAN_VERSION=3.17.0 /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} && 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-03-02 16:16:49 0.00B 指定运行容器时使用的用户
USER root
# 2026-03-02 16:16:49 0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
# 2026-03-02 16:16:49 0.00B 定义构建参数
ARG BARMAN_VERSION=3.17.0
# 2026-03-02 16:16:49 0.00B 指定运行容器时使用的用户
USER 26
# 2026-03-02 16:16:49 222.23MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=15.17 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-03-02 16:16:41 0.00B 指定运行容器时使用的用户
USER root
# 2026-03-02 16:16:41 0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=
# 2026-03-02 16:16:41 0.00B 定义构建参数
ARG EXTENSIONS=postgresql-15-pgaudit postgresql-15-pgvector postgresql-15-pg-failover-slots
# 2026-03-02 16:16:41 0.00B 指定运行容器时使用的用户
USER 26
# 2026-03-02 16:16:41 2.00KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=15.17 PG_MAJOR=15 /bin/sh -c usermod -u 26 postgres # buildkit
# 2026-03-02 16:16:41 302.28MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=15.17 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-03-02 16:16:41 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/15/bin
# 2026-03-02 16:16:41 0.00B 定义构建参数
ARG PG_MAJOR=15
# 2026-03-02 16:16:41 0.00B 定义构建参数
ARG PG_VERSION=15.17
# 2026-02-02 08:00:00 80.67MB
# debian.sh --arch 'amd64' out/ 'bullseye' '@1769990400'
镜像信息
{
"Id": "sha256:6d39524ea7ca60af937f466e191c430ea2335cec2f54918194c9bf07741f2b32",
"RepoTags": [
"ghcr.io/cloudnative-pg/postgresql:15.17",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:15.17"
],
"RepoDigests": [
"ghcr.io/cloudnative-pg/postgresql@sha256:e782d8ecd905392968f3b862b1a417a81e0f51bef04bed24c9b0e47f5b0666f1",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:32eba4fff468854f24a7b9df455b9ae6e1add71d3a6d4d5eb264e67cc6d46392"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2026-03-02T08:17:22.796301761Z",
"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:f0dbd70ae23f6ffa17f8b816a1ba1a489f7e9b3c32328867f6b456dec869e031",
"org.opencontainers.image.base.name": "docker.io/library/debian:bullseye-slim",
"org.opencontainers.image.created": "2026-03-02T08:16:18Z",
"org.opencontainers.image.description": "A system PostgreSQL 15.17 container image",
"org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "0e76f4fbbc9ba68a943c3dee01f9f3432336680c",
"org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.title": "CloudNativePG PostgreSQL 15.17 system",
"org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.vendor": "The CloudNativePG Contributors",
"org.opencontainers.image.version": "15.17"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 740207792,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/9efa75743d5f4b57c80bad16f81ebdedda26440ee8db991b78b662384cdad810/diff:/var/lib/docker/overlay2/25466e6973348f86381ca9f166e01ee54da08b8b1756022f5ca7f0d0562f1dc4/diff:/var/lib/docker/overlay2/288097f06c31eb5fc35ef4c894b28fc0feb9ba4a703ecbf9f2c9af33f2a0d3f1/diff:/var/lib/docker/overlay2/eacf77dc09d25cf4ab65a6d091000a8d91591782efd8f22ddfdcbfbbc11ac205/diff",
"MergedDir": "/var/lib/docker/overlay2/c877014c5167694ea36d05dd77ac3ff4508088d73e6a37802144979da3cd35a0/merged",
"UpperDir": "/var/lib/docker/overlay2/c877014c5167694ea36d05dd77ac3ff4508088d73e6a37802144979da3cd35a0/diff",
"WorkDir": "/var/lib/docker/overlay2/c877014c5167694ea36d05dd77ac3ff4508088d73e6a37802144979da3cd35a0/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:66e9c7c89f57c8ed2eca57382cba6e3b90e2765eeb2031482eaee3d2afd54b8f",
"sha256:c382ec5648b3f233711bdc923a18b290881f16c3e79239a6c7784246dc8d0488",
"sha256:f3caf2f535677553c49331c89ce5f6b789c95d6475a232b7d158fa1e17052163",
"sha256:851288c38bf7acf9babc108c1802fdb716211d0d90fc1584b68dc7536616ad79",
"sha256:5f151e1cb1acc942d44ed5e8a470dc592d4bd3afca7803dd188577c06c9ae9a7"
]
},
"Metadata": {
"LastTagTime": "2026-03-03T19:31:40.143881725+08:00"
}
}