http://s.we7.cc/store-static-install.html 下载稳定离线版本html
解压至文件夹:/var/www/we7_test/webmysql
docker 构建 php:7.4-apache 容器
docker run -d -p 8801:80 --name we7test --link mysql:mysql -v /var/www/we7_test/web:/var/www/html --restart=always php:7.4-apacheweb
进入容器sql
docker exec -it we7_test /bin/bashdocker
安装缺乏的扩展:gd pdoapache
apt-get update -y && apt-get install -y libpng-dev浏览器
docker-php-ext-install gd pdo pdo_mysqlbash
退出容器网站
exit
设置文件夹目录权限
chmod -R 777 /var/www/we7_test/web
重启容器
docker restart we7_test
浏览器访问
http://localhost:8801