镜像构建历史
# 2026-04-20 16:53:27 0.00B 指定运行容器时使用的用户
USER 26
# 2026-04-20 16:53:27 135.41MB 执行命令并创建新的镜像层
RUN |5 PG_VERSION=16.13 PG_MAJOR=16 EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-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-04-20 16:52:54 0.00B 指定运行容器时使用的用户
USER root
# 2026-04-20 16:52:54 0.00B 设置环境变量 PIP_BREAK_SYSTEM_PACKAGES
ENV PIP_BREAK_SYSTEM_PACKAGES=1
# 2026-04-20 16:52:54 0.00B 定义构建参数
ARG BARMAN_VERSION=3.17.0
# 2026-04-20 16:52:54 0.00B 指定运行容器时使用的用户
USER 26
# 2026-04-20 16:52:54 222.22MB 执行命令并创建新的镜像层
RUN |4 PG_VERSION=16.13 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
# 2026-04-20 16:52:46 0.00B 指定运行容器时使用的用户
USER root
# 2026-04-20 16:52:46 0.00B 定义构建参数
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=
# 2026-04-20 16:52:46 0.00B 定义构建参数
ARG EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-pg-failover-slots
# 2026-04-20 16:52:46 0.00B 指定运行容器时使用的用户
USER 26
# 2026-04-20 16:52:46 2.00KB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=16.13 PG_MAJOR=16 /bin/sh -c usermod -u 26 postgres # buildkit
# 2026-04-20 16:52:46 311.62MB 执行命令并创建新的镜像层
RUN |2 PG_VERSION=16.13 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
# 2026-04-20 16:52:46 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin
# 2026-04-20 16:52:46 0.00B 定义构建参数
ARG PG_MAJOR=16
# 2026-04-20 16:52:46 0.00B 定义构建参数
ARG PG_VERSION=16.13
# 2026-02-23 08:00:00 80.67MB
# debian.sh --arch 'amd64' out/ 'bullseye' '@1771804800'
镜像信息
{
"Id": "sha256:32983f888c4509d3b568c52c1387af0993fb77402851455d6fc0c1881eb89cfa",
"RepoTags": [
"ghcr.io/cloudnative-pg/postgresql:16.13",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql:16.13"
],
"RepoDigests": [
"ghcr.io/cloudnative-pg/postgresql@sha256:e05777da3dd583b99537dae500b4b63794c5b4fe01ececb2aaca1148bf555a8f",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/postgresql@sha256:bd9de59fce92bb15c11f68f24cf99782dccfbf868156d0197ba990c1a43c3368"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2026-04-20T08:53:27.901749162Z",
"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:4333240150a6924f878e05ec2c998aec95238010e0e4d2fec6161c90128c4652",
"org.opencontainers.image.base.name": "docker.io/library/debian:bullseye-slim",
"org.opencontainers.image.created": "2026-04-20T08:52:24Z",
"org.opencontainers.image.description": "A system PostgreSQL 16.13 container image",
"org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "2898836314d7846908a475d3208200c31d4f7fba",
"org.opencontainers.image.source": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.title": "CloudNativePG PostgreSQL 16.13 system",
"org.opencontainers.image.url": "https://github.com/cloudnative-pg/postgres-containers",
"org.opencontainers.image.vendor": "The CloudNativePG Contributors",
"org.opencontainers.image.version": "16.13"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 749924530,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/e6119de119710e37e6738a405f30d31d0412080f3763b138e9496648de933d69/diff:/var/lib/docker/overlay2/2a76ba2e3c14daa0e17a4728da17be82eacd237c9a7506bcdaec0f82b73c9972/diff:/var/lib/docker/overlay2/350054793e03c0d139587d4b480804802293b83d26757eb35157749acffaf676/diff:/var/lib/docker/overlay2/d6bf42e82b937ad115e26dff15ae87bb0bf6e9f6e2c587e80538c3e935eff4f5/diff",
"MergedDir": "/var/lib/docker/overlay2/61d87dac2e078d3677a6624508452f93c1d226caee6ba864161ce5b7553a15c8/merged",
"UpperDir": "/var/lib/docker/overlay2/61d87dac2e078d3677a6624508452f93c1d226caee6ba864161ce5b7553a15c8/diff",
"WorkDir": "/var/lib/docker/overlay2/61d87dac2e078d3677a6624508452f93c1d226caee6ba864161ce5b7553a15c8/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:d3426196f2da8a132c0011cd8c34c1a276b336cfaedff068b35b92525358c3f1",
"sha256:6217893a18fe3534f9c82bb53caa435d66d8cda568acd41b64f97b20a0db6995",
"sha256:0fae85d73b0e1047da1588767cdc0ba34af4ad72e9d9dbba06c7f07bace1a8a2",
"sha256:06986dde2dd1716f1f6b15344f3dfb5fbd78d1a0350ec4e66c5d4c0496a5098e",
"sha256:5ff9e043d2482957a2a4794e0485fc9ba17b517f252f2b4db1a3e60926c6cdaa"
]
},
"Metadata": {
"LastTagTime": "2026-04-23T14:34:08.132523819+08:00"
}
}