mysql packaged with love by KubeLauncher
6.4K
Built by KubeLauncherā ā production-grade, open-source, community-first.
Production-ready, broadly compatible MySQL relational database image based on Ubuntu 24.04. Includes MySQL server and client. Designed for Kubernetes, built for everyone.
8.0, 8, latestTags follow semantic versioning. Each push also generates a sha-<commit> tag for pinning to exact builds.
docker run -d --name mysql \
-e MYSQL_ROOT_PASSWORD=mysecretpassword \
-e MYSQL_DATABASE=myapp \
-e MYSQL_USER=appuser \
-e MYSQL_PASSWORD=apppass \
ghcr.io/kubelauncher/mysql:8.0
| Variable | Default | Description |
|---|---|---|
MYSQL_PORT_NUMBER | 3306 | Port MySQL listens on |
MYSQL_DATA_DIR | /data/mysql/data | Path to the data directory |
MYSQL_ROOT_PASSWORD | (none) | Password for the root user |
MYSQL_DATABASE | (none) | Name of a database to create on first run |
MYSQL_USER | (none) | Name of a user to create on first run |
MYSQL_PASSWORD | (none) | Password for the new user |
MYSQL_EXTRA_FLAGS | (none) | Additional flags passed to mysqld |
| Port | Description |
|---|---|
3306 | MySQL server |
Data is stored in /data/mysql/. Mount a volume to persist data:
docker run -d -v mysql-data:/data/mysql ghcr.io/kubelauncher/mysql:8.0
Place .sh, .sql, or .sql.gz files in /docker-entrypoint-initdb.d/ to run them on first initialization:
docker run -d \
-v ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro \
ghcr.io/kubelauncher/mysql:8.0
A production-ready Helm chart is available:
helm install my-mysql oci://ghcr.io/kubelauncher/charts/mysql
Built by KubeLauncher ā production-grade, open-source, community-first.
Need a production Kubernetes platform? Let's talkā .
Apache-2.0
Content type
Image
Digest
sha256:b25f98e6aā¦
Size
124.7 MB
Last updated
1 day ago
docker pull kubelauncher/mysql