镜像构建历史
# 2025-10-27 16:09:48 0.00B 指定运行容器时使用的用户
USER 26
# 2025-10-27 16:09:48 158.01MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=16.10 PG_MAJOR=16 EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= BARMAN_VERSION=3.16.1 /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-10-27 16:08:46 0.00B 指定运行容器时使用的用户
USER root
# 2025-10-27 16:08:46 0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
# 2025-10-27 16:08:46 0.00B 定义构建参数
ARG BARMAN_VERSION=3.16.1
# 2025-10-27 16:08:46 0.00B 指定运行容器时使用的用户
USER 26
# 2025-10-27 16:08:46 237.08MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=16.10 PG_MAJOR=16 EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-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
# 2025-10-27 16:08:27 0.00B 指定运行容器时使用的用户
USER root
# 2025-10-27 16:08:27 0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=
# 2025-10-27 16:08:27 0.00B 定义构建参数
ARG EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-pg-failover-slots
# 2025-10-27 16:08:27 0.00B 指定运行容器时使用的用户
USER 26
# 2025-10-27 16:08:27 1.82KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=16.10 PG_MAJOR=16 /bin/sh -c usermod -u 26 postgres # buildkit
# 2025-10-27 16:08:26 331.50MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=16.10 PG_MAJOR=16 /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-10-27 16:08:26 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin
# 2025-10-27 16:08:26 0.00B 定义构建参数
ARG PG_MAJOR=16
# 2025-10-27 16:08:26 0.00B 定义构建参数
ARG PG_VERSION=16.10
# 2025-10-20 08:00:00 78.62MB
# debian.sh --arch 'amd64' out/ 'trixie' '@1760918400'
镜像信息
{
"Id": "sha256:404b4c20b0888ed5c8b7c19f6420a8968de8a5c3d18bbb9acd73dc1ed0c04c8f",
"RepoTags": [
"ghcr.io/cloudnative-pg/postgresql:16.10-system-trixie",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:16.10-system-trixie"
],
"RepoDigests": [
"ghcr.io/cloudnative-pg/postgresql@sha256:b2adcca3b5a74f3ab7231b6e27d84c94c4e9d8906afbc660db6e9276a169676c",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:63e2fc80b87a445d4f8853cc3ac3a461c429bb25162efde9b0aae7e68c11976e"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-10-27T08:09:48.828794965Z",
"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/16/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:66b37a5078a77098bfc80175fb5eb881a3196809242fd295b25502854e12cbec",
"org.opencontainers.image.base.name": "docker.io/library/debian:trixie-slim",
"org.opencontainers.image.created": "2025-10-27T08:07:24Z",
"org.opencontainers.image.description": "A system PostgreSQL 16.10 container image",
"org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "d10522f3f7a96f9dbed20f5bba5d8c4c97dc56b4",
"org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.title": "CloudNativePG PostgreSQL 16.10 system",
"org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.vendor": "The CloudNativePG Contributors",
"org.opencontainers.image.version": "16.10"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 805212399,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/9b1c04d92106e420dbab64f0a8142450b03f9147aae8d840caf8e91450499a1d/diff:/var/lib/docker/overlay2/d427467f3092d7ba78359a59aac8cf49426ef194a357c44b47f9ff5ab3c8253b/diff:/var/lib/docker/overlay2/b42ac5761396b55e4362db7c8eacbbc39797837f0e80fc5985da859a9abd79d4/diff:/var/lib/docker/overlay2/0a9938a68c190cc2ed2d17e8600118bf60ba7b63774d32504284c9aca4d8e45c/diff",
"MergedDir": "/var/lib/docker/overlay2/d73ba8c8d75d3528ee9b769e201945ffbcaa2afab4aa4999a10ec47750bccd1b/merged",
"UpperDir": "/var/lib/docker/overlay2/d73ba8c8d75d3528ee9b769e201945ffbcaa2afab4aa4999a10ec47750bccd1b/diff",
"WorkDir": "/var/lib/docker/overlay2/d73ba8c8d75d3528ee9b769e201945ffbcaa2afab4aa4999a10ec47750bccd1b/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:d7c97cb6f1fe7cae982649e9f55efe201212e8acaa64bd668c083b204e4efd4c",
"sha256:ef4de8a072e0a330345d1955c42ef2806338d7cd38930fc7eda108ca5917872c",
"sha256:07c47e450642c3d3abd85792ec95d44782de1462b4d1cb4d5cfef4f5726e5c18",
"sha256:d0b26331a00db51a6e0278dc5a6231246e7b141e72a04f89224a77f643f42a7a",
"sha256:1ec89ea8d1ccf410f781f660a0afd262a213d8ec39b8f716a2575d5b68b6d469"
]
},
"Metadata": {
"LastTagTime": "2025-10-28T20:30:08.044145747+08:00"
}
}