提前安装好docker环境
本地需要这个docker-wordpress-latest.tar.gz包
将docker-wordpress-latest.tar.gz 导入到本地镜像
[root@docker01 ~]# docker load -i docker-wordpress-latest.tar.gz
创建对应的文件和目录
compose以守护进程模式运行加-d选项 放在后台运行
[root@docker01 ~]# docker-compose up -d
查看wordpress端口 49153
[root@docker01 ~]# docker ps
访问本地虚拟机的IP地址加wordpress端口
http://10.0.0.11:49153/
这样我们的wordpress就安装完毕了
原文链接:https://blog.csdn.net/weixin_46854390/article/details/114365494?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168623078216800211542160%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=168623078216800211542160&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-12-114365494-null-null.268%5Ev1%5Ekoosearch&utm_term=docker%E3%80%81wordpress%E3%80%81wordpress%E5%BB%BA%E7%AB%99%E3%80%81wordpress%E4%B8%BB%E9%A2%98%E3%80%81%E5%AE%B9%E5%99%A8%E9%95%9C%E5%83%8F%E3%80%81