Docker无法在Windows上启动:没有足够的内存来启动Docker [英] Docker won't start on Windows: Not Enough memory to start docker

查看:561
本文介绍了Docker无法在Windows上启动:没有足够的内存来启动Docker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows上使用Docker。我的机器具有4GB RAM和1.9GHz-2.5GHz Intel i5处理器,运行Windows 10 Pro x64。我知道这些不是强大的规范,但是我会认为我应该能够运行Docker?



但是,下载了Docker之后,我收到了错误消息:


内存不足,无法启动docker


我已经看到了许多关于此的论坛帖子和github问题,并遵循了我所看到的所有建议,例如修改Docker中的设置,我尝试了以下方法:





每次尝试发射。我尝试了2048MB,1792MB,1536MB,1280MB和1024MB的RAM,所有这些均失败了。



我还能做什么?当然可以在我的机器上以某种形式运行docker吗?注意:我已经关闭了所有非必需的后台应用程序。

解决方案

我也遇到了同样的问题。尝试了所有操作,从提供动态内存到启用和禁用Hyper V等。但是尽管如此,我还是没有成功。



然后我尝试了以下步骤



Docker将无法在Windows上启动:没有足够的内存来启动Docker



1)从系统托盘菜单中,右键单击 Docker >图标



2)选择切换到Windows容器...



3 )重新启动系统。



重新启动docker之后的操作应该显示为: Docker正在运行



希望这会有所帮助!



PS:切换到Linux容器后,现在应该可以切换回Linux容器






更新(2019年5月1日)



尽管采用了上述方法,但仍然无法在Windows计算机上启动docker,请尝试以下操作:





  • 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 powerful specs, but I would have thought I should be able to run Docker?

    However, having downloaded Docker, I get the error message:

    Not Enough memory to start docker

    I have seen various forum posts and github issues about this and followed all the advice I can see, such as modifying the settings in Docker, I tried these:

    They also mentioned changing the settings of the Hyper-V VM however, this seems to be deleted and recreated with the Docker specified settings on every attempted launch. I tried 2048MB, 1792MB, 1536MB, 1280MB and 1024MB of RAM, all of which failed.

    What else can I do? Surely I can run docker in some form on my machine? NB: I have closed all non-essential background apps. There doesn't seem to be many other suggestions for what seems to be a fairly common issue, where the given solutions don't work?

    解决方案

    I have also encountered the same problem. Tried everything from giving dynamic memory to enabling and disabling Hyper V and many more. But with all that, I got no success.

    Then I tried these steps for

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

    1) From System Tray menu, right click on Docker icon

    2) Select Switch to Windows containers...

    3) Restart the system.

    There you go after restarting your docker status should be showing as: Docker is running

    Hope this helps!

    PS: Switching back to Linux container should work now after switching to Windows Containers for most of the users as said by rfay.


    Updates (May 01, 2019)

    Despite of the above methods if you're still unable to start docker on your Windows Machine, try with the following things:

    • Download RAMMap from Microsoft's Official website
    • Open the application and select Empty menu
    • From the sub-menu list select the first option Empty Working Sets
    • Now refresh it by pressing F5

    Now try running docker and I believe this should work. Good Luck!

    这篇关于Docker无法在Windows上启动:没有足够的内存来启动Docker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆