Sign inSign up

luislavena/mini-mysql

By luislavena

Updated almost 11 years ago

Image
0

339

luislavena/mini-mysql repository overview

mini-mysql

MySQL Community Server container.

Usage

To run this container and bind port 3306:

docker run -d -p 3306:3306 luislavena/mini-mysql

You can now check the logs:

docker logs <CONTAINER_ID>
Setting up custom password

This container will initialize and generate a random password for admin user unless one is specified using MYSQL_PASS environment variable:

docker run -d -p 3306:3306 -e MYSQL_PASS=mystrongpassword luislavena/mini-mysql

This will only be set the first time the data volume is initialized.

Data and volumes

This container exposes /var/lib/mysql as bind mount volume. You can mount it when starting the container:

docker run -v /mydata/mysql:/var/lib/mysql -d -p 3306:3306 luislavena/mini-mysql

We recommend you mount the volume to avoid loosing data between updates to this container.

License

ISC

Tag summary

Content type

Image

Digest

sha256:2f4a8009d

Size

4 MB

Last updated

almost 11 years ago

docker pull luislavena/mini-mysql