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