镜像概览
- 完整引用
docker.io/apecloud/mysql- Registry
- docker.io
- 命名空间
- apecloud
- 仓库
- mysql
- 已缓存 Tag 数
- 30
- 最近同步
- 07/06/2026, 07:36 AM
- 相关主题
简介
ApeCloud 定制 MySQL 数据库镜像,面向 KubeBlocks 生态优化启动与配置,适合云原生 MySQL 集群单节点或 PoC。
详细介绍
apecloud/mysql 为 ApeCloud/KubeBlocks MySQL 引擎提供标准化入口,含兼容 KB 的数据目录与 bootstrap 脚本。定位为 MySQL 数据库服务,需 PVC 持久化 root 密码与字符集 env;与 KubeBlocks Operator 配合或独立 docker/K8s 部署。
快速启动
docker run -d --name ape-mysql \
-p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=changeme \
docker.io/apecloud/mysql:latest
推荐实践
docker run -d --name ape-mysql \
--restart unless-stopped \
-p 3306:3306 \
-v /data/mysql:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=changeme \
-e MYSQL_DATABASE=kbdemo \
docker.io/apecloud/mysql:8.0.35
核心参数说明
-p 3306:3306— MySQL 协议端口-v .../mysql:...— InnoDB 数据持久化-e MYSQL_ROOT_PASSWORD— root 密码(高敏)- 固定 tag — 与 KubeBlocks pin
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: ape-mysql
spec:
replicas: 1
selector:
matchLabels:
app: ape-mysql
template:
metadata:
labels:
app: ape-mysql
spec:
containers:
- name: mysql
image: docker.io/apecloud/mysql:8.0.35
ports:
- containerPort: 3306
envFrom:
- secretRef:
name: ape-mysql-secret
volumeMounts:
- name: data
mountPath: /var/lib/mysql
volumes:
- name: data
persistentVolumeClaim:
claimName: ape-mysql-data
---
apiVersion: v1
kind: Service
metadata:
name: ape-mysql
spec:
selector:
app: ape-mysql
ports:
- port: 3306
targetPort: 3306
生产推荐 KubeBlocks Cluster CR。
最新 Tag(20 条)
查看全部 30 个 Tag →| Tag | 架构 | 推送时间 | 大小 | Digest | 同步 | 期望 | 操作 |
|---|---|---|---|---|---|---|---|
docker.io/apecloud/mysql :8.4.8 | linux/amd64linux/arm64/v8 | 2026/04/07 10:23 | 222.4 MB | sha256:77e7fd3d377a… | |||
docker.io/apecloud/mysql :8.4.6 | linux/amd64linux/arm64/v8 | 2026/04/07 10:23 | 225.9 MB | sha256:c296d65ee6ab… | |||
docker.io/apecloud/mysql :8.4.5 | linux/amd64linux/arm64/v8 | 2026/04/07 10:23 | 225.2 MB | sha256:bd045a5ea8c8… | |||
docker.io/apecloud/mysql :8.4.4 | linux/amd64linux/arm64/v8 | 2026/04/07 10:22 | 222.1 MB | sha256:d895a591bdc9… | |||
docker.io/apecloud/mysql :8.0.44 | linux/amd64linux/arm64/v8 | 2025/12/04 11:24 | 221.3 MB | sha256:767f788cdf72… | |||
docker.io/apecloud/mysql :8.0.41 | linux/amd64linux/arm64/v8 | 2025/12/04 11:20 | 221.2 MB | sha256:d22640871397… | |||
docker.io/apecloud/mysql :8.4.7 | linux/amd64linux/arm64/v8 | 2025/11/04 14:44 | 224.9 MB | sha256:dd7588878e4b… | |||
docker.io/apecloud/mysql :8.4.3 | linux/amd64linux/arm64/v8 | 2025/11/04 14:43 | 163.6 MB | sha256:1ecf42d36098… | |||
docker.io/apecloud/mysql :dbdrag | linux/amd64linux/arm64 | 2025/03/23 19:40 | 159.3 MB | sha256:b9d83f264411… | |||
docker.io/apecloud/mysql :5.7.36 | linux/amd64 | 2024/12/20 14:10 | 147.7 MB | sha256:398f124948bb… | |||
docker.io/apecloud/mysql :8.0.26 | linux/amd64 | 2024/12/20 14:09 | 143.6 MB | sha256:882e55f40d61… | |||
docker.io/apecloud/mysql :8.4.1 | linux/arm64linux/amd64 | 2024/09/19 10:03 | 159.0 MB | sha256:2e8268487ee2… | |||
docker.io/apecloud/mysql :8.4.0 | linux/amd64linux/arm64 | 2024/09/19 10:02 | 160.9 MB | sha256:3e5649c69e6d… | |||
docker.io/apecloud/mysql :8.0.38 | linux/amd64linux/arm64 | 2024/09/11 10:48 | 159.1 MB | sha256:5c8c4d6722f3… | |||
docker.io/apecloud/mysql :8.0.37 | linux/amd64linux/arm64 | 2024/09/11 10:48 | 158.3 MB | sha256:2c1f9c922cd6… | |||
docker.io/apecloud/mysql :8.0.36 | linux/amd64linux/arm64 | 2024/09/11 10:48 | 166.7 MB | sha256:65ce08897519… | |||
docker.io/apecloud/mysql :8.0.35 | linux/amd64linux/arm64 | 2024/09/11 10:48 | 165.6 MB | sha256:82d43fa55566… | |||
docker.io/apecloud/mysql :8.0.34 | linux/amd64linux/arm64 | 2024/09/11 10:48 | 158.2 MB | sha256:8b8835a2c32c… | |||
docker.io/apecloud/mysql :8.0.31 | linux/amd64linux/arm64/v8 | 2024/09/11 10:47 | 153.1 MB | sha256:cfddf275c8b1… | |||
docker.io/apecloud/mysql :8.0.32 | linux/amd64linux/arm64/v8 | 2024/08/28 16:06 | 149.3 MB | sha256:c86dfd69b3d1… |