The MySQL service image is created on a lightweight Linux distribution, Alpine Linux. It's a only 5MB from scratch. Total size is 160MB.
docker create --name mysql \
-v /path_to/mysql/db:/var/lib/mysql
-v /path_to/mysql/conf:/etc/mysql/conf.d \
-v /path_to/mysql/my.cnf:/etc/mysql/my.cnf \
-p 3306:3306
kukki/docker-mysql
docker start mysql
After it starts, a admin account is created. The password can be retrieved by running
docker logs mysql
You can specify the default admin password with -e MYSQL_PASS=password parameter in docker create command line.
If you find any issues, you are welcome to report here
Content type
Image
Digest
Size
48.7 MB
Last updated
about 10 years ago
docker pull kukki/docker-mysql