Overview
- Full name
docker.io/vitess/lite- Registry
- docker.io
- Namespace
- vitess
- Repository
- lite
- Cached tags
- 676
- Last synced
- 07/06/2026, 01:46 PM
Introduction
Vitess 官方轻量单机镜像,内置 vtgate/vttablet 与 embedded MySQL,适合本地开发、CI 集成测试与 MySQL 分片方案原型验证。
Details
vitess/lite 将 Vitess 控制面与单节点 MySQL 打包为一体化容器,开箱即可体验水平分片与 VTGate 路由,无需完整 K8s Operator 栈。典型用于开发者验证 schema 迁移与 sharding key 设计,与 vitess/vttestserver 类似但镜像更精简。生产大规模集群应改用 vitess/operator 与独立 vttablet 节点;lite 模式数据经 volume 持久化,端口 15306 为 MySQL 协议入口、15999 为 vtgate。
快速启动
docker run -d --name vitess-lite \
-p 15306:15306 \
docker.io/vitess/lite:latest
推荐实践
docker run -d --name vitess-lite \
--restart unless-stopped \
-p 15306:15306 -p 15999:15999 \
-v /data/vitess:/vt/vtdataroot \
-e MYSQL_ROOT_PASSWORD=strong-pass \
docker.io/vitess/lite:v21.0.0
核心参数说明
-p 15306:15306— MySQL 协议连接 VTGate-p 15999:15999— vtgate gRPC/管理端口-v .../vitess:...— 数据目录与 binlog 持久化-e MYSQL_ROOT_PASSWORD— 内置 MySQL root 密码--restart unless-stopped— 开发库持续可用- 固定 tag — Vitess 大版本 pin
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: vitess-lite
spec:
replicas: 1
selector:
matchLabels:
app: vitess-lite
template:
metadata:
labels:
app: vitess-lite
spec:
containers:
- name: vitess
image: docker.io/vitess/lite:v21.0.0
ports:
- containerPort: 15306
envFrom:
- secretRef:
name: vitess-secrets
volumeMounts:
- name: data
mountPath: /vt/vtdataroot
volumes:
- name: data
persistentVolumeClaim:
claimName: vitess-data
---
apiVersion: v1
kind: Service
metadata:
name: vitess-lite
spec:
selector:
app: vitess-lite
ports:
- port: 15306
targetPort: 15306
仅适合 dev/staging 单副本;生产分片请迁移至 Vitess Operator,PVC 容量按分片数据量规划。
Latest tags (20)
View all 676 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/vitess/lite :latest | linux/amd64 | 2026/07/01 08:02 | 785.2 MB | sha256:1908a8deb4f6… | |||
docker.io/vitess/lite :percona84 | linux/amd64 | 2026/07/01 08:02 | 796.3 MB | sha256:17dbc4b8ee24… | |||
docker.io/vitess/lite :mysql80 | linux/amd64 | 2026/07/01 08:02 | 773.9 MB | sha256:103b5ecf3951… | |||
docker.io/vitess/lite :percona80 | linux/amd64 | 2026/07/01 08:02 | 771.3 MB | sha256:76b70a679c27… | |||
docker.io/vitess/lite :mysql84 | linux/amd64 | 2026/07/01 08:02 | 785.3 MB | sha256:bf43dc296820… | |||
docker.io/vitess/lite :v24.0.2-mysql80 | linux/amd64 | 2026/06/25 00:33 | 837.9 MB | sha256:bb342747f7a8… | |||
docker.io/vitess/lite :v24.0.2 | linux/amd64 | 2026/06/25 00:33 | 852.2 MB | sha256:36d080bbb3ec… | |||
docker.io/vitess/lite :v24.0.2-mysql84 | linux/amd64 | 2026/06/25 00:33 | 852.2 MB | sha256:0f2c034e2718… | |||
docker.io/vitess/lite :v24.0.2-percona84 | linux/amd64 | 2026/06/25 00:33 | 859.1 MB | sha256:aeb61d9f0d55… | |||
docker.io/vitess/lite :v24.0.2-percona80 | linux/amd64 | 2026/06/25 00:33 | 830.3 MB | sha256:a03c8134596d… | |||
docker.io/vitess/lite :v23.0.5-mysql80 | linux/amd64 | 2026/06/24 23:39 | 868.1 MB | sha256:5a83ae84360d… | |||
docker.io/vitess/lite :v23.0.5-mysql84 | linux/amd64 | 2026/06/24 23:39 | 871.8 MB | sha256:8c9f6729758b… | |||
docker.io/vitess/lite :v23.0.5-percona80 | linux/amd64 | 2026/06/24 23:39 | 860.4 MB | sha256:5d0dc0e727e5… | |||
docker.io/vitess/lite :v23.0.5 | linux/amd64 | 2026/06/24 23:38 | 871.7 MB | sha256:3eaf76128e36… | |||
docker.io/vitess/lite :v24.0.1 | linux/amd64 | 2026/05/07 23:40 | 845.7 MB | sha256:2ed85dfce8d5… | |||
docker.io/vitess/lite :v24.0.1-mysql84 | linux/amd64 | 2026/05/07 23:40 | 845.7 MB | sha256:c3316608ffbf… | |||
docker.io/vitess/lite :v24.0.1-mysql80 | linux/amd64 | 2026/05/07 23:40 | 832.0 MB | sha256:1d9429d69432… | |||
docker.io/vitess/lite :v24.0.1-percona84 | linux/amd64 | 2026/05/07 23:40 | 852.1 MB | sha256:75aa8b0955b5… | |||
docker.io/vitess/lite :v24.0.1-percona80 | linux/amd64 | 2026/05/07 23:40 | 829.4 MB | sha256:11148aae1449… | |||
docker.io/vitess/lite :v23.0.4 | linux/amd64 | 2026/05/07 22:29 | 865.4 MB | sha256:19f65bbd2c24… |