when you run: docker run -d -p 3306:3306 jianglibo/mysql:distrib5173 /opt/run.sh
database will store in container,default user name: admin, default password:123
start with other password:
docker run -d -p 3306:3306 -e "MYSQL_PASS=xxxx" jianglibo/mysql:distrib5173 /opt/run.sh
docker run -d -p 3306:3306 -v /opt/dbmysql:/var/lib/mysql -e “MYSQL_PASS=xxx” --name mysql5173 jianglibo/mysql:distrib5173 /opt/run.sh
when has parameter v, if /opt/db/mysql already has database exist, and database version is compatable with 5.1.73, container will work too. all data and user in your database will keep.
docker pull jianglibo/mysql:5.1.73