Docker container with an running MySQL Database.
The Container stores there Data at the Hostsystem in the Directory /tmp/docker-data/mysql
or in a configured Datadirectory.
Your can use the included Makefile.
To build the Container: make build
Starts the Container: make run
Starts the Container with Login Shell: make shell
Entering the Container: make exec
Stop (but not kill): make stop
History make history
You can find the Container also at DockerHub
- mariadb 10.1.x
MYSQL_ROOT_PASSWORD
(default: randomized generated with$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
)MYSQL_SYSTEM_USER
(default: generated with$(grep user /etc/mysql/my.cnf | cut -d '=' -f 2 | sed 's| ||g')
)
- 3306