Public | Automated Build

Last pushed: a month ago
Short Description
mysql for devs
Full Description

Docker container for mysql

Based on debian (latest) + mysql 5.5

Build it

docker build -t airvantage/dev-mysql .

Get it

docker pull airvantage/dev-mysql

Run it

With in-container data repository and empty password for "admin" user:
docker run -d --name=mysql -p 3306:3306 airvantage/dev-mysql

With in-container data repository and creating a default empty schema:
docker run -d --name=mysql -p 3306:3306 -e MYSQL_SCHEMA_NAME="<my schema name>" airvantage/dev-mysql

With in-container data repository and creating multiple empty schema:
docker run -d --name=mysql -p 3306:3306 -e MYSQL_SCHEMA_NAME="<my schema name>;<my schema name2>" airvantage/dev-mysql

With in-container data repository and setting admin login and password:
docker run -d --name=mysql -p 3306:3306 -e MYSQL_ADMIN_LOGIN="<my admin login>" -e MYSQL_ADMIN_PASS="<my admin password>" airvantage/dev-mysql

With external volume for data repository and setting admin login and password:
docker run -d --name=mysql -p 3306:3306 -v /home/workspace/mysql_data/:/var/lib/mysql:rw -e MYSQL_ADMIN_LOGIN="<my admin login>" -e MYSQL_ADMIN_PASS="<my admin password>" airvantage/dev-mysql

See e.g. the README of sonarqube container for the usage of mysql container from another one.

Docker Pull Command
Owner
airvantage
Source Repository

Comments (0)