How to run a docker machine on OSX?

I first installed and used docker,

Everything worked fine, but last night I turned off my computer.

Today I am launching it, and I wanted to work on my dock application. But when I try to run it like

docker run -d -p 8080:8080 container/app

I got an error:

docker: unable to connect to the docker daemon. Is the docker daemon running on this host ?.

But I can not find how to start docker again ...

Ideas?

EDIT:

eval "$(docker-machine env default)"

result:

TLS connection check error: host is down

+4
source share
1 answer

The command docker-machine env defaultwill not work if the machine is not running by default.

docker-machine ls, , , (, ).

, docker-machine start <name-of-machine>. ,

eval "$(docker-machine env default)"

https://docs.docker.com/machine/overview

+6

All Articles