Docker not working in Windows10

天涯浪子 提交于 2019-12-05 03:15:54

It looks like something bad happened to your docker-machine default machine.

To recover, do the following:

docker-machine rm -f default

Next, open the virtualbox GUI and make sure that there isn't a VM that corresponds with that old "default" VM, just in case. If there is, manually delete it from there.

Now, open the quickstart terminal again and it should create a new "default" virtual machine for you.

Alternatively, you can create it like this:

docker-machine create -d virtualbox --virtualbox-memory 2048 default

At that point, your sequence of commands should work as expected again.

You may need another couple of steps additional to what @programmerq mentioned.

  • Create empty text file: C:\Users\<user>\.docker\machine\machines\default\config.json
  • Stop VBoxHeadless.exe service from Windows task manager

Try docker-machine rm -f default and docker-machine create -d virtualbox --virtualbox-memory 2048 default commands afterwards to remove/add default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!