logo
ghcr.io/cloudnative-pg/pgbouncer:1.26.0
linux/amd64 ghcr.io 幸福已至🦁 贡献

ghcr.io/cloudnative-pg/pgbouncer是CloudNative-PG项目提供的PostgreSQL连接池工具pgbouncer的容器镜像,用于在云原生环境(如Kubernetes)中实现PostgreSQL数据库的连接池管理,支持与CloudNative-PG操作符集成,通过连接复用优化数据库连接资源利用率,降低数据库服务器的连接开销,提升应用程序与数据库交互的性能和稳定性。

17
浏览次数
143.15MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0
源镜像
ghcr.io/cloudnative-pg/pgbouncer:1.26.0
镜像ID
sha256:b5c0867a3f97642a58109d84a14a94e82d4caeb41d132a6d79eae54e85171595
镜像 TAG
1.26.0
镜像大小
143.15MB
平台架构
linux/amd64
镜像源
ghcr.io
CMD
/etc/pgbouncer/pgbouncer.ini
启动入口
/usr/bin/pgbouncer
工作目录
OS/平台
linux/amd64
镜像创建
2026-10-07T13:05:04.626889034Z
同步时间
2026-10-18 06:57
浏览量
17 次
贡献者
avatar 幸福已至🦁
🔌 开放端口 1
6432/tcp
⚙️ 环境变量 1
KeyValue
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 0
🏷️ 镜像标签 13
KeyValue
The CloudNativePG Contributors org.opencontainers.image.authors
sha256:a29215f6a35e51e22adffa17f89e9d2ef06214e64a2bad10d765c46aea49f11f org.opencontainers.image.base.digest
docker.io/library/debian:trixie-slim org.opencontainers.image.base.name
2026-10-07T13:04:51Z org.opencontainers.image.created
A PgBouncer 1.26.0 container image org.opencontainers.image.description
https://github.com/cloudnative-pg/pgbouncer-containers org.opencontainers.image.documentation
Apache-2.0 org.opencontainers.image.licenses
a5cb6d8a7251f2b7e6f1aa0847239d63edc9b7dc org.opencontainers.image.revision
https://github.com/cloudnative-pg/pgbouncer-containers org.opencontainers.image.source
CloudNativePG PgBouncer 1.26.0 org.opencontainers.image.title
https://github.com/cloudnative-pg/pgbouncer-containers org.opencontainers.image.url
The CloudNativePG Contributors org.opencontainers.image.vendor
1.26.0-4.pgdg13+1 org.opencontainers.image.version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0  ghcr.io/cloudnative-pg/pgbouncer:1.26.0

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0  ghcr.io/cloudnative-pg/pgbouncer:1.26.0

Shell快速替换命令

sed -i 's#ghcr.io/cloudnative-pg/pgbouncer:1.26.0#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0  ghcr.io/cloudnative-pg/pgbouncer:1.26.0'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0  ghcr.io/cloudnative-pg/pgbouncer:1.26.0'

镜像构建历史


# 2026-10-07 21:05:04  0.00B 设置默认要执行的命令
CMD ["/etc/pgbouncer/pgbouncer.ini"]
                        
# 2026-10-07 21:05:04  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/usr/bin/pgbouncer"]
                        
# 2026-10-07 21:05:04  0.00B 指定运行容器时使用的用户
USER pgbouncer
                        
# 2026-10-07 21:05:04  0.00B 声明容器运行时监听的端口
EXPOSE [6432/tcp]
                        
# 2026-10-07 21:05:04  64.32MB 执行命令并创建新的镜像层
RUN |1 PGBOUNCER_VERSION=1.26.0-4.pgdg13+1 /bin/sh -c apt-get update &&     apt-get upgrade -y &&     apt-get install -y --no-install-recommends postgresql-common ca-certificates &&     /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y &&     apt-get install -y --no-install-recommends -o Dpkg::::="--force-confdef" -o Dpkg::::="--force-confold"       "pgbouncer=${PGBOUNCER_VERSION}" postgresql-client &&     apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false &&     rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* /tmp/* &&     ln -s /usr/sbin/pgbouncer /usr/bin/pgbouncer &&     groupadd -r --gid 996 pgbouncer &&     useradd -r --uid 998 --gid 996 pgbouncer &&     mkdir -p /var/run/pgbouncer /var/log/pgbouncer &&     chown -R pgbouncer:pgbouncer /var/run/pgbouncer /var/log/pgbouncer /etc/pgbouncer/ # buildkit
                        
# 2026-10-07 21:05:04  0.00B 定义构建参数
ARG PGBOUNCER_VERSION=1.26.0-4.pgdg13+1
                        
# 2026-10-05 08:00:00  78.82MB 
# debian.sh --arch 'amd64' out/ 'trixie' '@1791158400'
                        
                    

镜像信息

{
    "Id": "sha256:b5c0867a3f97642a58109d84a14a94e82d4caeb41d132a6d79eae54e85171595",
    "RepoTags": [
        "ghcr.io/cloudnative-pg/pgbouncer:1.26.0",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer:1.26.0"
    ],
    "RepoDigests": [
        "ghcr.io/cloudnative-pg/pgbouncer@sha256:ce54f1133c509f1db8a8092c3f1c761d8c9292065ed6b6698786bb966da4dab9",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/cloudnative-pg/pgbouncer@sha256:94473b8555e63ee09b1a7afbfe18af7f9f45642a357ee46155e3d04bcc317d3a"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-10-07T13:05:04.626889034Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "pgbouncer",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "6432/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "Cmd": [
            "/etc/pgbouncer/pgbouncer.ini"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": [
            "/usr/bin/pgbouncer"
        ],
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.authors": "The CloudNativePG Contributors",
            "org.opencontainers.image.base.digest": "sha256:a29215f6a35e51e22adffa17f89e9d2ef06214e64a2bad10d765c46aea49f11f",
            "org.opencontainers.image.base.name": "docker.io/library/debian:trixie-slim",
            "org.opencontainers.image.created": "2026-10-07T13:04:51Z",
            "org.opencontainers.image.description": "A PgBouncer 1.26.0 container image",
            "org.opencontainers.image.documentation": "https://github.com/cloudnative-pg/pgbouncer-containers",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.revision": "a5cb6d8a7251f2b7e6f1aa0847239d63edc9b7dc",
            "org.opencontainers.image.source": "https://github.com/cloudnative-pg/pgbouncer-containers",
            "org.opencontainers.image.title": "CloudNativePG PgBouncer 1.26.0",
            "org.opencontainers.image.url": "https://github.com/cloudnative-pg/pgbouncer-containers",
            "org.opencontainers.image.vendor": "The CloudNativePG Contributors",
            "org.opencontainers.image.version": "1.26.0-4.pgdg13+1"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 143148624,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/62bdc9ebfd322c5c09a76f4813bf876edc59cde42b304a9a04f01ab5e9cf1c16/diff",
            "MergedDir": "/var/lib/docker/overlay2/2758a3bda836e395327f27f2b588526808b6c5f20866f87869584110cd7a60f7/merged",
            "UpperDir": "/var/lib/docker/overlay2/2758a3bda836e395327f27f2b588526808b6c5f20866f87869584110cd7a60f7/diff",
            "WorkDir": "/var/lib/docker/overlay2/2758a3bda836e395327f27f2b588526808b6c5f20866f87869584110cd7a60f7/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:15f1c8eb1ab18eae260c7fb6296434cbe1ff0e1e30fd814ae92a80dd54005e62",
            "sha256:c501b8ea6a79e65b5afa41f7b972e292115e407b94b357d1ff2f9da348aa3f6a"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-10-18T06:57:24.716462613+08:00"
    }
}

更多版本

ghcr.io/cloudnative-pg/pgbouncer:1.23.0

linux/amd64 ghcr.io408.05MB2026-08-11 19:09
142

ghcr.io/cloudnative-pg/pgbouncer:1.24.1

linux/amd64 ghcr.io142.85MB2026-02-13 15:44
424

ghcr.io/cloudnative-pg/pgbouncer:1.26.0

linux/amd64 ghcr.io143.15MB2026-10-18 06:57
16
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×