问题
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:
Open Windows defender
Disable Ransomeware protection
3. Install Docker
- optional back Ransomeware protection
来源:https://stackoverflow.com/questions/43351564/cannot-install-docker-on-windows-10