1.拉取mysql镜像
docker pull mysql:5.6
2.通过镜像创建容器
docker run --name mysql -p 3306:3306 -itd --privileged=true -v /usr/local/mysql/conf:/etc/mysql/conf.d -v /usr/local/mysql/logs:/logs -v /usr/local/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.6