LoginSignup
7
6

More than 3 years have passed since last update.

Docker上のcomposer install時にメモリ不足をお手軽に解消する Tips

Last updated at Posted at 2020-07-05

結論

$ COMPOSER_MEMORY_LIMIT=-1 composer install
  • COMPOSER_MEMORY_LIMIT=-1をオプションにつけて実行する

参照記事とか

docker上のphpコンテナでcomposer installしたら、メモリ不足で落ちた話
を参照に、php.iniを編集しても問題はありませんでしたが、もっとお手軽な方法が。

php.ini
  memory_limit = -1

composerにはCOMPOSER_MEMORY_LIMITの環境変数が使える

$ COMPOSER_MEMORY_LIMIT=-1 composer install

composer updateでmemoryが足りない場合の対応方法 その2

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6