Есть такая проблема:
Хостинг на CentOs
Выполняю команду из под Docker контейнера:
composer install
The following exception is caused by a lack of memory or swap, or not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooti... for details
[ErrorException]
proc_open(): fork failed - Cannot allocate memory
Рекомендации по адресу:
https://getcomposer.org/doc/articles/troubleshooti.../bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
Последняя команда (
/sbin/swapon /var/swap.1 ) выдает:
swapon: /var/swap.1: insecure permissions 0644, 0600 suggested.
swapon: /var/swap.1: swapon failed: Operation not permitted
Как можно решить данную проблему?