镜像概览

完整引用
docker.io/apache/shardingsphere-proxy
Registry
docker.io
命名空间
apache
仓库
shardingsphere-proxy
已缓存 Tag 数
16
最近同步
07/05/2026, 10:25 AM
相关主题

简介

Apache ShardingSphere-Proxy 镜像,数据库分库分表中间件,MySQL/PostgreSQL 协议透明读写分离与分布式 SQL 路由代理。

详细介绍

apache/shardingsphere-proxy 运行 ShardingSphere-Proxy 数据库中间件,对应用透明提供 MySQL/PostgreSQL 协议的分库分表、读写分离与分布式事务。定位为数据库代理中间件服务;海量数据分片、读写分离架构或 Java 生态透明分库分表替代客户端 SDK 方案。

快速启动

docker run -d --name shardingsphere-proxy \
  -p 3307:3307 \
  docker.io/apache/shardingsphere-proxy:latest

推荐实践

docker run -d --name shardingsphere-proxy \
  --restart unless-stopped \
  -p 3307:3307 \
  -v /data/ss/conf:/opt/shardingsphere-proxy/conf \
  docker.io/apache/shardingsphere-proxy:5.5.0

核心参数说明

  • -p 3307:3307 — MySQL 协议代理端口
  • -v .../conf:... — 分片规则配置
  • 后端 — 真实 DB 数据源
  • 协议 — 应用无感 MySQL 连接

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: shardingsphere-proxy
spec:
  replicas: 2
  selector:
    matchLabels:
      app: shardingsphere-proxy
  template:
    metadata:
      labels:
        app: shardingsphere-proxy
    spec:
      containers:
        - name: proxy
          image: docker.io/apache/shardingsphere-proxy:5.5.0
          ports:
            - containerPort: 3307
          volumeMounts:
            - name: conf
              mountPath: /opt/shardingsphere-proxy/conf
      volumes:
        - name: conf
          configMap:
            name: ss-proxy-config
---
apiVersion: v1
kind: Service
metadata:
  name: shardingsphere-proxy
spec:
  selector:
    app: shardingsphere-proxy
  ports:
    - port: 3307
      targetPort: 3307

ConfigMap 存分片规则;应用连 Service。

最新 Tag(20 条)

查看全部 16 个 Tag →
Tag架构推送时间大小Digest同步期望操作
docker.io/apache/shardingsphere-proxy
:latest
linux/amd64linux/arm64
2026/03/18 13:20266.9 MBsha256:44469e5cb059
docker.io/apache/shardingsphere-proxy
:5.5.3
linux/amd64linux/arm64
2026/03/18 13:20266.9 MBsha256:44469e5cb059
docker.io/apache/shardingsphere-proxy
:5.5.2
linux/amd64linux/arm64
2025/01/22 21:40293.8 MBsha256:caba8e77bcdb
docker.io/apache/shardingsphere-proxy
:5.5.1
linux/amd64linux/arm64
2024/10/21 17:56283.5 MBsha256:039c9eb46d46
docker.io/apache/shardingsphere-proxy
:5.5.0
linux/amd64linux/arm64
2024/04/30 15:00289.1 MBsha256:c6dd87425700
docker.io/apache/shardingsphere-proxy
:5.4.1
linux/amd64linux/arm64
2023/10/21 14:47266.5 MBsha256:67b8eed2d729
docker.io/apache/shardingsphere-proxy
:5.4.0
linux/amd64linux/arm64
2023/07/08 15:17333.9 MBsha256:eb7f22b866e3
docker.io/apache/shardingsphere-proxy
:5.3.2
linux/amd64linux/arm64
2023/03/30 16:54322.0 MBsha256:9cc7c7e2812d
docker.io/apache/shardingsphere-proxy
:5.3.1
linux/amd64linux/arm64
2023/01/10 11:07278.4 MBsha256:d29db3725992
docker.io/apache/shardingsphere-proxy
:5.3.0
linux/amd64linux/arm64
2022/12/09 17:37280.1 MBsha256:1cf0705d96ea
docker.io/apache/shardingsphere-proxy
:5.2.1
linux/amd64linux/arm64
2022/10/18 15:41279.7 MBsha256:d86c5848a8bb
docker.io/apache/shardingsphere-proxy
:5.2.0
linux/amd64linux/arm64
2022/09/08 19:26277.3 MBsha256:9a4cc0969a78
docker.io/apache/shardingsphere-proxy
:5.1.2
linux/amd64linux/arm64
2022/06/17 10:50274.3 MBsha256:ba4785e37df5
docker.io/apache/shardingsphere-proxy
:5.1.1
linux/amd64
2022/04/14 16:59190.6 MBsha256:29fdeb1aae9b
docker.io/apache/shardingsphere-proxy
:5.1.0
linux/amd64
2022/02/15 14:37247.7 MBsha256:2ace301ee85e
docker.io/apache/shardingsphere-proxy
:5.0.0
linux/amd64
2021/11/10 10:33227.9 MBsha256:9af0e7bde4dd