![]() |
VOOZH | about |
MySQL open source fast, stable, multi-thread SQL database. Long-term tracks maintained by Canonical.
1M+
ubuntu/mysql is a rock for mysql maintained by Canonical.
MySQL is a fast, stable and true multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular database query language in the world. The main goals of MySQL are speed, robustness and ease of use. Read more on the MySQL website.
NOTE: These tags follow a specific naming convention that respects the concept of channels.
| Tags | Supported until | Version | Base | Architectures | |
|---|---|---|---|---|---|
8.0-24.04_beta | 04/2031 | 8.0 | 24.04 | arm64, amd64 | |
8.0-22.04_beta | - | 8.0 | 22.04 | amd64, s390x, ppc64le, arm64 | |
8.0-21.10_beta | - | 8.0 | 21.10 | s390x, amd64, arm64, ppc64le | |
8.0-21.04_beta | - | 8.0 | 21.04 | s390x, arm64, amd64, ppc64le | |
8.0-20.04_beta | - | 8.0 | 20.04 | s390x, arm64, amd64, ppc64le | |
8.4-26.04_edge | 05/2031 | 8.4 | 26.04 | amd64, s390x, arm64 | |
8.4-24.04_edge | 04/2031 | 8.4 | 24.04 | amd64, s390x, arm64 | |
8.0-24.04_edge | 04/2031 | 8.0 | 24.04 | arm64, s390x, amd64 |
This rock's entrypoint is Pebble, a container-optimized init process that enables the orchestration of a collection of local service processes as an organized set.
To view the Pebble services and checks defined in this rock:
docker run --rm ubuntu/mysql:8.0-24.04_beta plan
To run this rock, use any of the usual container runtimes, for example, docker:
docker run --name mysql-container \
-e TZ=UTC -e MYSQL_ROOT_PASSWORD=My:S3cr3t -p 30306:3306 \
ubuntu/mysql:8.0-24.04_beta
MySQL server runs on port 30306. Access the server at localhost:30306.
To view the logs of the running container, run:
docker exec mysql-container pebble logs
Or, for a specific service:
docker exec mysql-container pebble logs <service>
Rocks may have predefined health checks that you can list by running:
docker exec mysql-container pebble checks
The overall health of your container can be inspected via:
docker exec mysql-container pebble health
| Option | Description | Default |
|---|---|---|
| TZ | Timezone. | UTC |
| MYSQL_ROOT_PASSWORD | Set the password for the root user. This option is mandatory and must not be empty. | None |
| MYSQL_PASSWORD | Set the password for the MYSQL_USER user. | None |
| MYSQL_USER | Create a new user with the MYSQL_PASSWORD password. The user is created with superuser privileges. | None |
| MYSQL_DATABASE | Set the name of the default database. | None |
| MYSQL_ALLOW_EMPTY_PASSWORD | Set up a blank password for the root user. This is not recommended in production. | None |
| MYSQL_RANDOM_ROOT_PASSWORD | Generate a random password for the root user. The password is printed in the logs. | None |
| MYSQL_ONETIME_PASSWORD | Set up a one-time password for the root user. A password change is required on first login. | None |
| MYSQL_INITSB_SKIP_TZINFO | Timezone data is automatically loaded via entrypoint script; set this variable to any non-empty value to disable it. | None |
| Option | Description | Default |
|---|---|---|
-v <path>:/var/lib/mysql | Persist data instead of initializing a new database every time you launch a new container. | None |
-v <path>:/etc/mysql/mysql.conf.d/ | Local configuration files for MySQL. | None |
| Option | Description | Default |
|---|---|---|
-p <port>:3306 | Expose MySQL server on localhost:30306. | None |
Canonical is the provider of this container image. It is the user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within, as well as with Canonical’s IP Policy.
Content type
Image
Digest
sha256:0bfba18bb…
Size
110.8 MB
Last updated
2 days ago
docker pull ubuntu/mysql:8.4-26.04_edgePulls:
3,245
Jun 15 to Jun 21