Home  >  Article  >  Operation and Maintenance  >  How to solve the problem of insufficient memory in docker

How to solve the problem of insufficient memory in docker

藏色散人
藏色散人Original
2022-01-12 11:29:528695browse

Solution to insufficient docker memory: 1. Find "C:\Users\(username)\AppData\Roaming\Docker\settings.json"; 2. Edit the memoryMiB value; 3. Restart docker.

How to solve the problem of insufficient memory in docker

The operating environment of this article: Windows 7 system, docker desktop win version, Dell G3 computer.

How to solve the problem of insufficient docker memory?

Solution to docker dektop Not enough memory Insufficient RAM, Unable to start

After modifying RAM to 14Gb, the startup failed, prompting insufficient memory, unable to change from GUI settings, prompting The error is as follows

Problem

Unable to start
at Docker.Core.Pipe.NamedPipeClient.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters)
at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup)
at Docker.Actions.<>c__DisplayClass24_0.b__0()
at Docker.ApiServices.TaskQueuing.TaskQueue.<>c__DisplayClass17_0.<.ctor>b__1()

Not enough memory in the system to start the virtual machine DockerDesktopVM.

Could not initialize memory: Ran out of memory (0x8007000E).

&#39;DockerDesktopVM&#39; failed to start. (Virtual machine ID E882D002-05C8-47C9-B90E-303A9C6E22EC)

Not enough memory in the system to start the virtual machine DockerDesktopVM with ram size 2048 megabytes. (Virtual machine ID E882D002-05C8-47C9-B90E-303A9C6E22EC)

Solution

Out of memory - Issue since latest update · Issue #4368 · docker/for-win
 https://github.com/docker/for-win/issues/4368

The solution is that you can manually edit the settings.json file to reduce the VM memory. This is usually in

C:\Users\(username)\AppData\Roaming\Docker\settings.json. Edit the memoryMiB value.

Restart docker problem solved!

Recommended learning: "docker tutorial"

The above is the detailed content of How to solve the problem of insufficient memory in docker. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn