Browse code

FAQ: add docker daemon unavailable note

Signed-off-by: Tomasz Kopczynski <tomek@kopczynski.net.pl>

Tomasz Kopczynski authored on 2016/01/27 05:46:19
Showing 1 changed files
... ...
@@ -257,6 +257,26 @@ dropped. To correct this problem, change the service's configuration on your
257 257
 localhost so that the service accepts requests from all IPs.  If you aren't sure
258 258
 how to do this, check the documentation for your OS.
259 259
 
260
+### Why do I get `Cannot connect to the Docker daemon. Is the docker daemon running on this host?` when using docker-machine?
261
+
262
+This error points out that the docker client cannot connect to the virtual machine.
263
+This means that either the virtual machine that works underneath `docker-machine`
264
+is not running or that the client doesn't correctly point at it.
265
+
266
+To verify that the docker machine is running you can use the `docker-machine ls`
267
+command and start it with `docker-machine start` if needed.
268
+
269
+    $ docker-machine ls
270
+    NAME             ACTIVE   DRIVER       STATE     URL   SWARM                   DOCKER    ERRORS
271
+    default          -        virtualbox   Stopped                                 Unknown
272
+
273
+    $ docker-machine start default
274
+
275
+You have to tell Docker to talk to that machine. You can do this with the
276
+`docker-machine env` command. For example,
277
+
278
+    $ eval "$(docker-machine env default)"
279
+    $ docker ps
260 280
 
261 281
 ### Where can I find more answers?
262 282