http://s.we7.cc/store-static-install.html 下載穩定離線版本php
解壓至文件夾:/var/www/we7_test/webhtml
docker run -d -p 8881:80 --name we7test --link mysql:mysql -v /var/www/we7_test/web:/var/www/html --restart=always php:7.2-apachemysql
進入容器web
docker exec -it we7_test /bin/bashsql
安裝缺乏的擴展:gd pdodocker
apt-get update -y && apt-get install -y libpng-devapache
docker-php-ext-install gd pdo pdo_mysql瀏覽器
退出容器bash
exitspa
設置文件夾目錄權限
chmod -R 777 /var/www/we7_test/web
重啓容器
docker restart we7_test
http://localhost:8881