1,进入docker
2,cp php.ini
3, cd到目录
[root@3 ~]# docker exec -it wordpress /bin/bash root@1d8a4fbdaa6b:/var/www/html# cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini root@1d8a4fbdaa6b:/var/www/html# cd /usr/local/etc/php
4,update apt
5,安装vim
root@1d8a4fbdaa6b:/usr/local/etc/php# apt-get update
root@1d8a4fbdaa6b:/usr/local/etc/php# apt-get install vim
6,vi php.ini
/upload 查找upload
修改
upload_max_filesize = 200M #文件大小限制
post_max_size = 250M #post大小限制
memory_limit = 500M #内存占用限制
7,docker start
[root@3 ~]# docker restart wordpress
wordpress