fideloper/docker-mysql — pull request #9 by seth2810 (2014-07-23 14:08:01+00:00)
Title: Add environment settings

Now we can create user / database / password using docker using environment variables.

docker run -p 3306:3306 --name mysql --env MYSQL_ROOT_PASSWORD=xehVg1IpVhEmlwRMG -d mysql /sbin/my_init --enable-insecure-key

inspired by https://github.com/orchardup/docker-mysql