Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker not working in Windows10

I am using Docker version 1.12.2, build bb80604 and VirtualBox 5.1.6.

I was able to install Docker Toolbox correctly but I am not able to start the default VM.

I tried to follow the instruction given here but I am still getting The system cannot find the file specified error. I don't have Hyper-V enabled on system.

F:\>docker-machine ls
NAME      ACTIVE   DRIVER      STATE   URL   SWARM   DOCKER   ERRORS
default            not found   Error                          open C:\Users\Animesh\.docker\machine\machines\default\config.json: The system cannot find the file specified.

F:\>docker-machine env --shell=cmd
open C:\Users\Animesh\.docker\machine\machines\default\config.json: The system cannot find the file specified.

F:\>docker rm default
An error occurred trying to connect: open //./pipe/docker_engine: The system cannot find the file specified.

How can I solve this issue?

like image 972
Animesh Pandey Avatar asked Oct 14 '16 22:10

Animesh Pandey


1 Answers

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.

like image 200
programmerq Avatar answered Sep 22 '22 05:09

programmerq