进入容器 docker-compse exec php-fpm bash 安装bcmath扩展 docker-php-ext-install bcmath /usr/local/etc/php/conf.d 查看安装扩展 重启PHP容器