1、docker search mysql
2、docker pull mysql
3、docker run -p 3306:3306 --name mysq2.16 -v /usr/local/mysql/conf:/etc/mysql/conf.d -v /usr/local/mysql/data:/var/lib/mysql -v /etc/localtime:/etc/localtime -e MYSQL_ROOT_PASSWORD=command -d mysql:5.6.40
1、docker search mysql
2、docker pull mysql
3、docker run -p 3306:3306 --name mysq2.16 -v /usr/local/mysql/conf:/etc/mysql/conf.d -v /usr/local/mysql/data:/var/lib/mysql -v /etc/localtime:/etc/localtime -e MYSQL_ROOT_PASSWORD=command -d mysql:5.6.40