Docker部署WordPress

docker pull mysql:5.6
docker images

docker run -d –name myMysql -v /home/mydata:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=20190717@Helian.tech -p 3306:3306 mysql:5.6
docker ps

docker exec -it myMysql /bin/bash

docker pull wordpress:latest
docker images

docker run -d –name wordpress –link myMysql:mysql -v /home/myhtmldata:/var/www/html -p 8888:80 wordpress
docker ps