Docker does not install correctly on Mac

I have a pretty fresh Macbook Pro. Just downloaded the Docker installer and launched it. Then I opened the quick launch application, which had some errors.

I would show you what he said, but the second time he does not make the same mistakes. Here, that it shows the second time, I open the quick launch application:

Machine default already exists in VirtualBox.
Starting machine default...
exit status 1
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
Setting environment variables for machine default...



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


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

default is not running. Please start this with docker-machine start default
bash-3.2$ docker-machine env
Error: Expected either one machine name, or -u flag to unset the variables in the arguments.

And this is what happens when I try to launch docker:

docker run hello-world
Post http:///var/run/docker.sock/v1.20/containers/create: dial unix /var/run/docker.sock: no such file or directory.
* Are you trying to connect to a TLS-enabled daemon without TLS?
* Is your docker daemon up and running?

I thought Docker was supposed to be really great (everyone seems to like it), but these are really confusing elements that I followed all the instructions.

EDIT: I am using Mac OS 10.10.3 and VirtualBox 5.0.3

+4
source share
1 answer

Just run from your shell:

eval $(docker-machine env default)

.bash_profile.

env, docker-machine env default:

$ docker-machine env default
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/Users/user/.docker/machine/machines/default"
export DOCKER_MACHINE_NAME="default"
# Run this command to configure your shell:
# eval "$(docker-machine env default)"

docker-machine (aka boot2docker)

$ docker-machine start default

docker-machine

+6

All Articles