I’ve moved to a new computer with Windows 10 and have installed docker toolbox. I’m finding I can’t run most composer commands because I get “killed”. My virtualbox has been allocated an astronomical 12 gb.
When I run free -m I get
However when I run a really simple composer command like
composer require ‘drupal/video_embed_field:^2.0’
It spins for 5 or 10 mins and then says “killed”.
If I open another terminal window and run “docker stats” it shows that 2gb is the maximum memory (wtf?) and the command gets to about 98 or 99% of that and runs for quite some time and then the other window says “killed” and it returns to about 200kb used.
Why can’t docker toolbox use all 12gb? How can any simple composer command take over TWO GIGABYTES?? Unfortunately I left my mac at work so I can’t see if that also is limited to 2gb. Very frustrating, I’m at my wits end, I’ve been trying to run one of several simple composer commands for at least a day and a half and docker toolbox and composer simply will not work together.
edit: Note that “composer install” is one of the commands that seems to consistently work, but composer
remove and composer require commands bork every time. Thanks for your help!
edit2: Windows 10 home 64-bit, 16gb ram, 512gb ssd.
I see docker on my mac is allowed to use 8gb, not just 2gb like on my PC, what am I doing wrong? I see on my windows computer I have about 3gb of swap space, is there a way I can increase that? I’ve gone through half a dozen articles on increasing swap on ubuntu 16 and none of them work on docker. One land mine after another. Very frustrated.
Was finally able to increase the memory by recreating the docker container and specifying the gb to use during creation. The swap size didn’t increase with this command but docker stats finally shows 8gb instead of 2gb.
I used
Interesting. Docker’s default behavior, when you do not specify a --memory c-group limit is to allow the process to have as much memory as the host machine. But your free -m response indicates that’s not the problem here.