gdbj
gdbj

Reputation: 17485

Error 137 on docker build command on Win7

Executing the following command:

docker build -m 3g --memory-swap -1 -f MyDockerfile .

And I'm getting this:

Solving package specifications: .....Killed
The command '/bin/sh -c conda update -y --all &&     conda install -y -c menpo m
enpo &&     conda install -y -c menpo menpofit &&     conda install -y -c menpo
menpodetect &&     conda install -y -c menpo dlib &&     conda install -y -c men
po opencv3 &&     conda install -y joblib &&     pip install pyprind &&     pip
install colorlog' returned a non-zero code: 137

From googling, my understanding is that the OS is killing my running process here due to running out of memory. I have 8gb on my host machine, and I can see that I am not going over 4gb used. I added the memory switches above, to no discernible effect.

Since I'm running this on Win7 and the older docker toolbox, am I being limited by Oracle's VM VirtualBox?

Upvotes: 3

Views: 3605

Answers (2)

Kohn1001
Kohn1001

Reputation: 3901

Restarting Docker solved it for me

enter image description here

Upvotes: 0

wcyn
wcyn

Reputation: 4216

You can also have a look at this answer: https://stackoverflow.com/a/42398166/2878244

You may have to increase the memory resources assigned to docker by going to the Docker Tab > Preferences > Advanced

Docker advanced settings

Upvotes: 5

Related Questions