getcomposer.org
root@bf4d72ccb742:/var/www# composer require intervention/image
Using version ^2.5 for intervention/image
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.
#
root@bf4d72ccb742:/var/www# php -r "echo ini_get('memory_limit').PHP_EOL;"
128M
今回
/usr/local/etc/php/php.ini
memory_limit = 4G