for-win icon indicating copy to clipboard operation
for-win copied to clipboard

No way to increase available RAM for linuxkit based workloads

Open bloodybeet opened this issue 9 years ago • 7 comments

Expected behavior

When running images that require a lot of RAM, i.e. microsoft/mssql-server-linux, the container immediately stops with a notification that more RAM should be made available to the running container.

Actual behavior

There is no option to configure the RAM used by linuxkit based workloads, for as far as I can see

Steps to reproduce the behavior

  1. docker run microsoft/mssql-server-linux on Windows 1709 + LCOW Docker for Windows edge 17.10.0-ce-win36 (13788)

bloodybeet avatar Oct 27 '17 13:10 bloodybeet

Yep same here. "sqlservr: This program requires a machine with at least 3250 megabytes of memory."

thomasmaurer avatar Oct 28 '17 11:10 thomasmaurer

Did you increase the amount of memory in the configuration panel? https://docs.docker.com/docker-for-windows/#advanced

settings-cpu-ram

thaJeztah avatar Oct 30 '17 10:10 thaJeztah

With the new linuxKit option where you run Linux Container directly on Windows and not in the mobyVM, these setting panel is not there anymore.

thomasmaurer avatar Oct 30 '17 10:10 thomasmaurer

I don't know if this is wired up in LCOW yet, and currently don't have a system at hand, but could you try docker run --memory <size>?

rn avatar Oct 30 '17 10:10 rn

@thaJeztah just pointed me at https://github.com/docker/for-win/issues/1137 suggesting that this has not been hooked up yet

rn avatar Oct 30 '17 10:10 rn

Sorry, it wasn't clear you meant the experimental LCOW (Linux Containers On Windows) feature (as the "regular" Linux containers now also use LinuxKit since docker 17.10.

This feature is not feature-complete yet, and additional features will be added in future; see the issue that @rn linked above; https://github.com/docker/for-win/issues/1137

Let me close this issue to not have the discussion diverge

thaJeztah avatar Oct 30 '17 10:10 thaJeztah

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jun 24 '20 03:06 docker-robott