简体   繁体   English

无法在Windows 10上安装docker

[英]cannot install docker on windows 10

I am pretty new to docker with windows. 我对windows的docker很新。 I had not problem with it on my personal mac. 我个人的Mac上没有问题。 However, I have been unable to get docker to run correctly on windows 10. 但是,我无法让docker在Windows 10上正常运行。

I have followed along the accepted stack overflow answer Cannot start docker after installation on Windows . 我已经跟随接受的堆栈溢出答案在Windows上安装后无法启动docker

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. 我可以看到找不到DRIVER ,找不到config.json

I tried uninstalling docker toolbox but that did not make a difference. 我尝试卸载docker工具箱,但这没有什么区别。 There seems to be multiple additional issues when I check docker-machine . 当我检查docker-machine时,似乎还有其他一些问题。 Not sure though how to get past this. 不知道如何通过这个。

  • first,you should reboot your win10 computer (to make your env variable valid. 首先,你应该重新启动你的win10计算机(使你的env变量有效。
  • second,run docker-machine rm -f default in your computer commandline. 第二,在您的计算机命令行中运行docker-machine rm -f default
  • last,double click Docker Quickstart Terminal and waiting to auto complete.and it will be ok. 最后,双击Docker Quickstart终端并等待自动完成。它会没问题。

Here are the steps if you are trying like me with windows: 如果您像我一样尝试使用Windows,请执行以下步骤:

  1. Open Windows defender 打开Windows后卫 在此输入图像描述

  2. Disable Ransomeware protection 禁用Ransomeware保护 在此输入图像描述

3. Install Docker 3.安装Docker

  1. optional back Ransomeware protection 可选后退Ransomeware保护

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM