Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Toolbox fails at quick-start step. #139

Open
cbronazc opened this issue Sep 1, 2015 · 40 comments
Open

Toolbox fails at quick-start step. #139

cbronazc opened this issue Sep 1, 2015 · 40 comments
Labels

Comments

@cbronazc
Copy link

cbronazc commented Sep 1, 2015

I'm not sure if it matters but it skips the VM migration step. So I get here:

screen shot 2015-09-01 at 9 32 31 am

And click on the quickstart terminal, there I see this:

. '/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'

Creating Machine default... Error creating machine config dir: mkdir /Users/me/.docker/machine/certs: permission denied Starting machine default... Error: Host does not exist: default Setting environment variables for machine default...

                    ##         .
              ## ## ##        ==
           ## ## ## ## ##    ===
       /"""""""""""""""""\___/ ===
  ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
       \______ o           __/
         \    \         __/
          \____\_______/

Error: Host does not exist: default
docker is configured to use the default machine with IP
For help getting started, check out the docs at https://docs.docker.com
Error: Host does not exist: default

I've tried creating the dir and chmod'ing it but no luck. I do have cisco anyconnect installed and that has caused problems in the past.

@jmorganca
Copy link
Contributor

Can you provide the output of ls -al ~/.docker?

@cbronazc
Copy link
Author

cbronazc commented Sep 1, 2015

bash-3.2$ ls -al ~/.docker
total 0
drwxr-xr-x 3 root staff 102 Aug 31 15:40 .
drwxr-xr-x+ 44 me staff 1496 Sep 1 10:12 ..
drwxr-xr-x 3 root staff 102 Aug 31 16:05 machine

Macbook pro - Yosemite 10.10.5

@woodhull
Copy link

This is happening for me too.

@seckcoder
Copy link

I also got the same error.

@codesplicer
Copy link

I got the same error too. Chmod'd the .docker directory under home and got a bit further via Kitematic however, but the Docker Toolbox installer reported the installation as failed.

@ghost
Copy link

ghost commented Sep 16, 2015

+1

@mvanvuuren
Copy link

same error here +10

Edit: Open VirtualBox gui and remove the VM default. Start over. Seems to have done the job for me

Edit : Unfortunately same issue.
Creating Machine default...
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM...
^^^^^^^^^^^^
^^^^^^^^^^

Nothing else

docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM
default virtualbox Timeout

docker-machine status default
Running

docker-machine env default
Unexpected error getting machine url: exit status 255
docker-machine url default
exit status 255

@marciovicente
Copy link

@mvanvuuren It's works fine for me. Thanks!

@philmui
Copy link

philmui commented Oct 7, 2015

+1 same here

                    ##         .
              ## ## ##        ==
           ## ## ## ## ##    ===
       /"""""""""""""""""\___/ ===
  ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
       \______ o           __/
         \    \         __/
          \____\_______/

Error: Host does not exist: default
docker is configured to use the default machine with IP
For help getting started, check out the docs at https://docs.docker.com

Error: Host does not exist: default
/bin/sh: /bin/sh: cannot execute binary file


$ ls ~/.docker
machine

@rebyn
Copy link

rebyn commented Oct 10, 2015

Removing the default virtual machine works for me.

@mchiang0610
Copy link
Contributor

cc @docker/machine-maintainers

@mlmurray
Copy link

mlmurray commented Nov 5, 2015

Doesn't work for me. My fail is earlier - before the Default VM is ever created. And I can't create it. I get:

MLMurray:~mlmurray$ docker-machine create --driver virtualbox default
Error loading driver "virtualbox": dial tcp: missing address

@ahars
Copy link

ahars commented Nov 10, 2015

I've got the same error at quickstart

@jmorganca
Copy link
Contributor

Sorry for the delay, what is the output of echo $(stat -f '%Su' /dev/console) ?

@ahars
Copy link

ahars commented Nov 10, 2015

I have solved this problem with a rm -rf on the
.docker/machine/machines/default

@cbronazc
Copy link
Author

Output is my username, same as the output of whoami.

@jmorganca
Copy link
Contributor

Is it the same for sudo echo $(stat -f '%Su' /dev/console) ?

@cbronazc
Copy link
Author

Yes

@Waxolunist
Copy link

For me the error was reolved by sudo chown -R $USER ~/.docker

@cawmit
Copy link

cawmit commented Dec 18, 2015

@Waxolunist Me too but now it asks for a password that I don't seem to have

@connaryscott
Copy link

what a bummer, this thing does too much. what a mess it leaves if i wanted to try to completely remove it and reinstall it again. It's like playing 52 card pickup. Never a full deck again, i keep find cards laying around underneath things :(

@wembernard
Copy link

+1

@Alleyfield
Copy link

+1

Edit: got it working

  1. removed $home/.docker completely
  2. removed all VirtualBox network adapters ... VBoxManage hostonlyif remove vboxnet0 from 0 to 4
  3. ran the quickstart - all ok

@ghost
Copy link

ghost commented Feb 19, 2016

@Alleyfield your suggestion works for me, thanks!

@4th-turning
Copy link

Probably not directly related to the reported problem, but ... I've got the same problem ("Host does not exist: default") when I've decided to recreate the docker-machine with virtualbox path location different to default one. So once I've exported export MACHINE_STORAGE_PATH=my_path and created new docker-machine - my other terminal sessions or new sessions could not see the docker-machine and returned "Host does not exist: default". Once I've added the same export for MACHINE_STORAGE_PATH for my shell profile/other shell session - everything is back to normal. So check your env

@andfinally
Copy link

@mvanvuuren Thanks! Deleting the default VM in VirtualBox GUI solved it for me.

@dale-ackerman
Copy link

I am having similar problems OSX 10.11.4 (iTerm) when I run the quick start app it launches a shell but doesn't run the
bash --login '/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'

This is in the bash history...

@iaracy
Copy link

iaracy commented Apr 26, 2016

Adding export MACHINE_STORAGE_PATH="my path" permanently to relevant .bashrc
did all the trick.
The rest was just cleaning remainings
Thanks backer.

@HagarKassem
Copy link

Thanks @mvanvuuren, it works for me also.

@changjunjie
Copy link

I got this same error "Error: Host does not exist: default", then I do nothing.
You need to start Kitematic first, and create one docker images, then reopen the "Docker Quickstart Terminal", the error disappear.

@garrettmaring
Copy link

This is still broken...

@flowchartsman
Copy link

flowchartsman commented Jun 10, 2016

Yep. I installed the toolbox and:

$ docker ps
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
$ eval "$(docker-machine env default)"
Host does not exist: "default"

Tried the earlier suggestions of removing old VirtualBox local networks and running the quickstart again. Same deal. Pretty frustrating.

This could have to do with iterm2. If Kitematic is any indication, I'm assuming the terminal quickstart should display a bunch of text and perhaps some interactive prompts. Instead, it just seems to focus the terminal window and nothing more. Kitematic seems to work fine on this, my third runthrough. Still need to eval "$(docker-machine env default)", but at least I get reasonable-looking output now.

@MikeyJudd
Copy link

@alaska - Did you try putting sudo in front of your command? sudo docker ps

@ryannealmes
Copy link

I was also struggling with this. I managed to get things running from Kitematic. There is a button at the bottom of the Mac application Docker CLI. Clicking this worked for me. You can also check your terminal history to get the command they used to start things, so you don't have to use Kitematic.

@ABVA088-VishalAmbesange

I am a new bee for Docker. I have installed Docker toolbox on my Windows 10 Laptop. Toolbox installation went successful however on starting "Docker Quickstart Terminal". getting below error and I have no clue how to resolve this.

Running pre-create checks...
(default) Default Boot2Docker ISO is out-of-date, downloading the latest release...
(default) Latest release for github.com/boot2docker/boot2docker is v1.12.1
(default) Downloading C:\Users\Vishal.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.12.1/boot2docker.iso...
(default) 0%....10%Error removing file: Error removing temporary download file: remove C:\Users\Vishal.docker\machine\cache\boot2docker.iso.tmp320824635: The process cannot access the file because it is being used by another process.
(default)
Error with pre-create check: "read tcp 192.168.0.103:54238->52.216.224.0:443: wsarecv: An existing connection was forcibly closed by the remote host."
Looks like something went wrong in step ´Checking if machine default exists´... Press any key to continue...

any help in resolving above is much appreciated.

@frontenddeveloping
Copy link

+1

@frontenddeveloping
Copy link

My solution for VirtualBox:

  1. docker-machine ls - no default, let's create it
  2. docker-machine create -d virtualbox default
  3. Mac OS X only - eval $(docker-machine env default)

@ivorscott
Copy link

@frontenddeveloping my hero

@sfilhu
Copy link

sfilhu commented Oct 31, 2016

@Alleyfield my hero

@Iristyle
Copy link

Similarly to virtualbox, but for vmware fusion on OSX

docker-machine create --driver vmwarefusion default

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests