开启dhcp dns服务器

dhcpdns.lab.example.com 192.168.0.5
servera.lab.example.com 192.168.0.10

配置好dockers仓库/配置好阿里加速器/安装好docker

[root@servera ~]# docker pull mysql:latest

[root@servera ~]# docker pull wordpress:latest

运行mysql 和 wordpress

[root@servera ~]# docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest

[root@servera ~]# docker run --name some-wordpress --link some-mysql:mysql -p 8080:80 -d wordpress

[root@servera ~]# docker exec -it some-mysql bash

[root@servera ~]# docker logs some-mysql

IE:http://servera.lab.example.com:8080