A small MySQL Container based on Alpine
501
This is a docker container with mysql. The intention to build this container is to make it as small as possible. Therefore, this container is based on alpine.
You must set the MYSQL_USER and the MYSQL_PASS variable. Create a empty folder on your local storage and set this to your_local_path.
docker build -t sysreport/mysql . # build the container
docker run --detach --name mysql -v <your_local_path>:/var/lib/mysql -e "MYSQL_USER=<your_user>" -e "MYSQL_PASS=<your_pass>" -p 3306:3306 sysreport/mysql # start the container
docker exec -i -t mysql /bin/bash # log in the container
Ok, the run command is very long. Its time to use a Makefile or Env Var's.
| Container Version | MariaDB Version | MySQL Version |
|---|---|---|
| latest | 10.1.18 | 5.5.5 |
| develop | 10.1.18 | 5.5.5 |
| 0.1 | 10.1.18 | 5.5.5 |
Content type
Image
Digest
Size
42.1 MB
Last updated
almost 10 years ago
docker pull sysreport/mysql