刚刚安装docker是没有镜像的[root@chaols ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
下载mysql镜像
[root@chaols ~]# docker pull mysql
下载wordpress镜像
[root@chaols ~]# docker pull wordpress
查看镜像
[root@chaols ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wordpress latest 292e6901fa20 2 days ago 616MB
mysql latest 5a4e492065c7 3 days ago 514MB
创建mysql虚拟机
[root@chaols ~]# docker run -d -e MYSQL_ROOT_PASSWORD=chao -p 3360:3306 --name chao.mysql mysql