Skip to content

Instantly share code, notes, and snippets.

@Niknafs
Last active January 10, 2018 08:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Niknafs/971a5171f69f35576539bd73e7d032b5 to your computer and use it in GitHub Desktop.
Save Niknafs/971a5171f69f35576539bd73e7d032b5 to your computer and use it in GitHub Desktop.

Problem:

Often, after restarting my machine (OS X Yosemite, version 10.10.5) I encounter the following error the first time I run docker quick start terminal. The problem is discussed in great length here, but none of the proposed solutions seemed to fix it on my machine.

Specs

OS X Yosemite version 10.10.5
Docker version  1.9.1

Error

bash --login '/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'
Machine default already exists in VirtualBox.
Setting environment variables for machine default...


                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/
Error getting IP address: Something went wrong running an SSH command!
command : ip addr show dev eth1
err     : exit status 255
output  :
docker is configured to use the default machine with IP
For help getting started, check out the docs at https://docs.docker.com

Error checking TLS connection: Error getting driver URL: Something went wrong running an SSH command!
command : ip addr show dev eth1
err     : exit status 255
output  :

Solution

docker-machine restart default
# Restarted machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
docker-machine env default
# which prints out the lines below, to be run from the terminal
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/Users/Noushin/.docker/machine/machines/default"
export DOCKER_MACHINE_NAME="default"
# Run this command to configure your shell:
# eval "$(docker-machine env default)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment