Docker won't start on Windows: Not Enough memory to start docker

后端 未结 18 2105
[愿得一人]
[愿得一人] 2020-12-12 22:07

I am trying to get started with Docker on Windows. My machine has 4GB of RAM and a 1.9GHz - 2.5GHz Intel i5 processor, running Windows 10 Pro x64. I know these aren\'t power

18条回答
  •  粉色の甜心
    2020-12-12 22:43

    Problem: Installed Docker Desktop. Got Out of Memory error upon starting with linux instance.

    Details: OS: Windows 10 Professional Host: Lenovo ThinkPad Carbon X1, 4GB RAM Docker Desktop: Version 2.1.0.1 (37199) Docker advanced settings:

    • CPUs: 2
    • Memory: 2048MB (this is the maximum)
    • Swap: 2048MB
    • Disk Image Size: 59.6GB (4MB used)

    Hyper-V settings for DockerDesktopVM:

    • Settings > Memory > RAM: 2048MB (tried to increase to 4096; still doesn't work)
    • Settings > Memory > Enable Dynamic Memory (checked/un-checked; both doesn't work)

    Under variations of the above settings, Docker Desktop gives this error when starting/ re-starting:

    Not enough memory to start Docker Desktop You are trying to start Docker Desktop but you don't have enough memory. Free some memory or change your settings.

    The problem resolutions reported in the following links, e.g. starting with Windows instance, then switching back to Linux, don't work for me, regardless of how much memory I allocate via Hyper-V or Docker settings.

    It is utterly frustrating because apparently people are reporting being able to start with linux instances on host machines with 4GB of RAM. So I wonder what I am doing wrong.

    Resources researched/ tried:

    • https://forums.docker.com/t/not-enough-memory-to-start-docker/13512/24
    • Docker won't start on Windows: Not Enough memory to start docker

    Questions:

    1. Can I even run Docker Desktop with linux instance on my host machine?
    2. If (1) is yes, then what settings will allow me to do this?

提交回复
热议问题