前置条件:安装Docker(可参考)
1.Pull Mysql镜像:
去Docker Hub官网找需要的MySQL版本,本文以5.7.29
版本为例
docker pull mysql:5.7.29
[root@lee000 ~]# docker pull mysql:5.7.29
5.7.29: Pulling from library/mysql
68ced04f60ab: Pull complete
f9748e016a5c: Pull complete
da54b038fed1: Pull complete
6895ec5eb2c0: Pull complete
111ba0647b87: Pull complet