1、拉取镜像 docker pull mysql 2、运行容器 docker run -d --restart=always \ -p 3306:3306 \ -v /akim-boot/mysql/data:/var/lib/mysql \ -v /akim-boot/mysql/logs:/logs \ -v /akim-boot/mysql/conf:/etc/mysql/my.cnf \ -v /etc/localtime:/etc/localtime \ -e MYSQL_ROOT_PASSWORD=ab…