Official MariaDB image with Galera cluster automation. Easy multi-node setup with auto-bootstrap.
4.3K
Official MariaDB image with Galera cluster automation scripts by Devsaurus.
mariadb imageamd64, arm64docker run -d --name galera \
-e MARIADB_ROOT_PASSWORD=secret \
-e GALERA_CLUSTER_BOOTSTRAP=yes \
devsaurus/mariadb-galera:11.4
# Node 1 (bootstrap)
docker run -d --name galera-1 \
-e MARIADB_ROOT_PASSWORD=secret \
-e GALERA_CLUSTER_NAME=mycluster \
-e GALERA_CLUSTER_ADDRESS=galera-1,galera-2,galera-3 \
-e GALERA_CLUSTER_BOOTSTRAP=yes \
-e GALERA_SST_PASSWORD=sstpass \
devsaurus/mariadb-galera:11.4
# Node 2, 3 (join)
docker run -d --name galera-2 \
-e MARIADB_ROOT_PASSWORD=secret \
-e GALERA_CLUSTER_NAME=mycluster \
-e GALERA_CLUSTER_ADDRESS=galera-1,galera-2,galera-3 \
-e GALERA_SST_PASSWORD=sstpass \
devsaurus/mariadb-galera:11.4
| Variable | Description |
|---|---|
MARIADB_ROOT_PASSWORD | Root password (required) |
MARIADB_DATABASE | Create database on startup |
MARIADB_USER | Create user on startup |
MARIADB_PASSWORD | Password for user |
| Variable | Default | Description |
|---|---|---|
GALERA_CLUSTER_NAME | galera_cluster | Cluster name |
GALERA_CLUSTER_ADDRESS | - | Node list (comma-separated) |
GALERA_CLUSTER_BOOTSTRAP | no | Bootstrap new cluster |
GALERA_NODE_NAME | hostname | This node's name |
GALERA_SST_METHOD | mariabackup | SST method |
GALERA_SST_USER | mariabackup | SST user |
GALERA_SST_PASSWORD | - | SST password |
GALERA_FORCE_BOOTSTRAP | no | Force bootstrap (recovery) |
| Port | Description |
|---|---|
| 3306 | MySQL client |
| 4567 | Galera replication |
| 4568 | IST |
| 4444 | SST |
| Path | Description |
|---|---|
/var/lib/mysql | Database data |
/docker-entrypoint-initdb.d | Init scripts |
Auto-detects when to bootstrap:
GALERA_CLUSTER_BOOTSTRAP=yes → Bootstrapsafe_to_bootstrap: 1 + no other nodes → Bootstrap| Tag | MariaDB Version |
|---|---|
11.4, latest | 11.4.x |
11.2 | 11.2.x |
10.11 | 10.11.x (LTS) |
10.6 | 10.6.x (LTS) |
Content type
Image
Digest
sha256:7f5816b8d…
Size
114.7 MB
Last updated
16 days ago
docker pull devsaurus/mariadb-galera