cannot install docker on windows 10

五迷三道 提交于 2020-01-05 04:23:12

问题


I am pretty new to docker with windows. I had not problem with it on my personal mac. However, I have been unable to get docker to run correctly on windows 10.

I have followed along the accepted stack overflow answer Cannot start docker after installation on Windows.

However, when I run

docker-machine ls

I get

NAME      ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER    ERRORS
default            not found    Error                             open C:\Users\Steve\.docker\machine\machines\default\config.json: The system cannot find the file specified.
test      -        virtualbox   Stopped                 Unknown

I can see that the DRIVER is not found and that config.json cannot be found.

I tried uninstalling docker toolbox but that did not make a difference. There seems to be multiple additional issues when I check docker-machine. Not sure though how to get past this.


回答1:


  • first,you should reboot your win10 computer (to make your env variable valid.
  • second,run docker-machine rm -f default in your computer commandline.
  • last,double click Docker Quickstart Terminal and waiting to auto complete.and it will be ok.



回答2:


Here are the steps if you are trying like me with windows:

  1. Open Windows defender

  2. Disable Ransomeware protection

3. Install Docker

  1. optional back Ransomeware protection


来源:https://stackoverflow.com/questions/43351564/cannot-install-docker-on-windows-10

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