Fixing docker error message on new terminal open

Since we use docker for just about everything at work, I got started with the very helpful ‘Getting Started’ guide. Shortly after, I noticed an issue where every time I opened a new terminal window, I was getting an error message.

Error checking TLS connection: Host is not running

This was because I was attempting to be clever and have my bash profile get docker set up for me, except it didn’t work when I didn’t have a docker-machine running already.

The fix: run docker-machine start default (substitute whatever name you want for default if you’re fancy) before running any other docker-machine commands.

The real fix: Don’t try to be quite that clever. I’ll get more sensible error messages that way.

The real real fix: Why do all the helpers for docker have a freaking - in the middle!? It is very annoying to type.

One thought on “Fixing docker error message on new terminal open

  1. Thank you!

    I too was suffering from:

    Error checking TLS connection: Host is not running

    I now understand that I too was trying to be clever and the docker machine wasn’t running in the same “session” as my terminal.

Leave a Reply

Your email address will not be published. Required fields are marked *