Reputation: 13
I am new to docker and somehow stuck with very less memory allocated to docker on my machine. The max limit it shows here is 15 mb. Can anyone suggest how to increase this limit ? do i have to uninstall and reinstall docker or there is some easy way to do that ?
I am using docker on win 10 in linux environment. The advanced setting doesnt show 2GB limit , it only shows the 15 mb limit which is too less for my computational requirement.
Any sort of help / guidance would be welcome please. Best regards.
Upvotes: 1
Views: 7664
Reputation: 1328602
The question "Docker windows container memory limit" mentions the -m
option of docker run
.
Try that first:
-m, --memory=""
Memory limit (format:
<number>[<unit>]
).
Number is a positive integer.
Unit can be one of b, k, m, or g. Minimum is 4M.
The OP reports using:
docker run --memory=4g
However:
docker run
requires an image name to run: see docker run
man page.Upvotes: 2