镜像构建历史
# 2025-11-10 16:19:48 0.00B 指定运行容器时使用的用户
USER 26
# 2025-11-10 16:19:48 134.21MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=13.22 PG_MAJOR=13 EXTENSIONS=postgresql-13-pgaudit postgresql-13-pgvector postgresql-13-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= 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:18:25 0.00B 指定运行容器时使用的用户
USER root
# 2025-11-10 16:18:25 0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
# 2025-11-10 16:18:25 0.00B 定义构建参数
ARG BARMAN_VERSION=3.16.2
# 2025-11-10 16:18:25 0.00B 指定运行容器时使用的用户
USER 26
# 2025-11-10 16:18:25 222.22MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=13.22 PG_MAJOR=13 EXTENSIONS=postgresql-13-pgaudit postgresql-13-pgvector postgresql-13-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-11-10 16:18:05 0.00B 指定运行容器时使用的用户
USER root
# 2025-11-10 16:18:05 0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=
# 2025-11-10 16:18:05 0.00B 定义构建参数
ARG EXTENSIONS=postgresql-13-pgaudit postgresql-13-pgvector postgresql-13-pg-failover-slots
# 2025-11-10 16:18:05 0.00B 指定运行容器时使用的用户
USER 26
# 2025-11-10 16:18:05 2.00KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=13.22 PG_MAJOR=13 /bin/sh -c usermod -u 26 postgres # buildkit
# 2025-11-10 16:18:05 298.21MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=13.22 PG_MAJOR=13 /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:18:05 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/13/bin
# 2025-11-10 16:18:05 0.00B 定义构建参数
ARG PG_MAJOR=13
# 2025-11-10 16:18:05 0.00B 定义构建参数
ARG PG_VERSION=13.22
# 2025-11-04 04:44:10 80.67MB
# debian.sh --arch 'amd64' out/ 'bullseye' '@1762202650'
镜像信息
{
"Id": "sha256:bfccb237772fb123fec675da6174de234d642c9923c759a61fa42d9e53a248be",
"RepoTags": [
"ghcr.io/cloudnative-pg/postgresql:13.22",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:13.22"
],
"RepoDigests": [
"ghcr.io/cloudnative-pg/postgresql@sha256:bd12cfd185d2a5cb09ac51dd7c61cb7801da6250e8d9bd72d2891fcdedace32b",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:f266e0f047509a9a4d91477a55500a505b78e1c7352d7bd356a066042782a400"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-11-10T08:19:48.821510366Z",
"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/13/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:17:11Z",
"org.opencontainers.image.description": "A system PostgreSQL 13.22 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 13.22 system",
"org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.vendor": "The CloudNativePG Contributors",
"org.opencontainers.image.version": "13.22"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 735311635,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/ed868ec2387dfde630eea654b241247cf23dfaa64dcb825f631701c15b415c94/diff:/var/lib/docker/overlay2/84fe35ed8491ca48d0872f946e6ad2528e619f3fa3104e801da2d39f60140fb0/diff:/var/lib/docker/overlay2/b3a232d1f0e9233f79bbc22e6ba20972a90af63aa708d927d1de88dc44546430/diff:/var/lib/docker/overlay2/eb57730ce31a82fc7d15a5852fa4d2b01594aadb9f79898d34b7a91375bcf77b/diff",
"MergedDir": "/var/lib/docker/overlay2/d568ab96b4cab168829ac9ddde77982518d9325e60e5212828d85120d0f7013d/merged",
"UpperDir": "/var/lib/docker/overlay2/d568ab96b4cab168829ac9ddde77982518d9325e60e5212828d85120d0f7013d/diff",
"WorkDir": "/var/lib/docker/overlay2/d568ab96b4cab168829ac9ddde77982518d9325e60e5212828d85120d0f7013d/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:176df4f6b9a6f70ca257149a9a12599e86d2520d2f58ad6f1cf829df3c920123",
"sha256:29ba9329d3e5aac6cd4e7afd08e6dc22687b37ff3c92c344b170e288d22cea68",
"sha256:d3d940c01d9536cd7c87ae941c36ea79768c3a20b21da72cbec8544e426ef418",
"sha256:a4c9171303aebb57a67516662bf628f72d826b5cd96df9712005090083044cc5",
"sha256:7b675d0f62e02a5b992a21851fd8108423f56225b6e3e790c1cbfcc02f03588b"
]
},
"Metadata": {
"LastTagTime": "2026-04-23T16:42:10.698922215+08:00"
}
}