1. yum install -y yum-utils device-mapper-persistent-data lvm2
2.yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3.yum install docker-ce docker-ce-cli containerd.io
4.docker pull mysql:5.7.29
5.docker run --name=mysql -d -p=3306:3306 -v=/home/docker/mysql/conf:/etc/mysql/conf.d -v=/home/docker/mysql/logs:/logs -v=/home/docker/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=admin888 mysql:5.7.29