VOOZH about

URL: https://hub.docker.com/r/ubuntu/mysql

⇱ ubuntu/mysql - Docker Image


ubuntu/mysql

Verified Publisher

By Canonical

Updated 2 days ago

MySQL open source fast, stable, multi-thread SQL database. Long-term tracks maintained by Canonical.

Image
Databases & storage
74

1M+

ubuntu/mysql repository overview

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.

[Learn more about mysql]

Tags and Architectures

NOTE: These tags follow a specific naming convention that respects the concept of channels.

TagsSupported untilVersionBaseArchitectures
8.0-24.04_beta04/20318.024.04arm64, amd64
8.0-22.04_beta-8.022.04amd64, s390x, ppc64le, arm64
8.0-21.10_beta-8.021.10s390x, amd64, arm64, ppc64le
8.0-21.04_beta-8.021.04s390x, arm64, amd64, ppc64le
8.0-20.04_beta-8.020.04s390x, arm64, amd64, ppc64le
8.4-26.04_edge05/20318.426.04amd64, s390x, arm64
8.4-24.04_edge04/20318.424.04amd64, s390x, arm64
8.0-24.04_edge04/20318.024.04arm64, s390x, amd64

Get started

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.

[Learn more about Pebble]

Inspect

To view the Pebble services and checks defined in this rock:

docker run --rm ubuntu/mysql:8.0-24.04_beta plan
Run

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.

Get logs

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>
Monitor health checks

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

Configuration

Environment variables
OptionDescriptionDefault
TZTimezone.UTC
MYSQL_ROOT_PASSWORDSet the password for the root user. This option is mandatory and must not be empty.None
MYSQL_PASSWORDSet the password for the MYSQL_USER user.None
MYSQL_USERCreate a new user with the MYSQL_PASSWORD password. The user is created with superuser privileges.None
MYSQL_DATABASESet the name of the default database.None
MYSQL_ALLOW_EMPTY_PASSWORDSet up a blank password for the root user. This is not recommended in production.None
MYSQL_RANDOM_ROOT_PASSWORDGenerate a random password for the root user. The password is printed in the logs.None
MYSQL_ONETIME_PASSWORDSet up a one-time password for the root user. A password change is required on first login.None
MYSQL_INITSB_SKIP_TZINFOTimezone data is automatically loaded via entrypoint script; set this variable to any non-empty value to disable it.None
Volumes
OptionDescriptionDefault
-v <path>:/var/lib/mysqlPersist 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
Ports
OptionDescriptionDefault
-p <port>:3306Expose MySQL server on localhost:30306.None

[Report a bug] [Contribute]

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.

Tag summary

8.4-26.04_edge

Content type

Image

Digest

sha256:0bfba18bb…

Size

110.8 MB

Last updated

2 days ago

docker pull ubuntu/mysql:8.4-26.04_edge

This week's pulls

Pulls:

3,245

Jun 15 to Jun 21