MySQL Community Server container.
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>
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.
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.
ISC
Content type
Image
Digest
sha256:2f4a8009d…
Size
4 MB
Last updated
almost 11 years ago
docker pull luislavena/mini-mysql