Public | Automated Build

Last pushed: 7 months ago
Short Description
The WordPress enviroment for Docker Container
Full Description

WordPress

WordPress运行环境

基于 php:7.1.5-apache版本建构,开启rewrite。

使用

Pull

$ sudo docker pull trendsoft/wordpressd

Run

$ docker run --name wordpress -dp 80:80 -v `pwd`:/var/www/html trendsoft/wordpressd

Xdebug 使用

$ sudo docker pull trendsoft/wordpressd:xdebug

Run

$ sudo docker run --name wordpress -dp 80:80 -v `pwd`:/var/www/html trendsoft/wordpressd:xdebug

进入xdebug容器

$ sudo docker exec -it wordpress /bin/bash

修改xdebug配置

$ sed -i '$a xdebug.remote_host = 192.168.1.105' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini 
$ sed -i '$a xdebug.remote_enable = On' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

重启xdebug容器

$ sudo docker restart wordpress
Docker Pull Command
Owner
trendsoft
Source Repository