Docker Community Forums

Share and learn in the Docker community.

Docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. MAC

docker

(Marcgrad) #1

hey i have a problem. Ive install Docker on my mac and i cant do anything… when i enter ‘docker ps’ i get

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See ‘docker run --help’.

Docker version 17.10.0-ce, build f4ffd25

Don’t know what to do…

when i run docker quickstar terminal :

Starting “default”…
(default) Check network to re-create if needed…
(default) Creating a new host-only adapter produced an error: /usr/local/bin/VBoxManage hostonlyif create failed:
(default) 0%…
(default) Progress state: NS_ERROR_FAILURE
(default) VBoxManage: error: Failed to create the host-only adapter
(default) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(default) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(default) VBoxManage: error: Context: “RTEXITCODE handleCreate(HandlerArg *)” at line 94 of file VBoxManageHostonly.cpp
(default)
(default) This is a known VirtualBox bug. Let’s try to recover anyway…
dError setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
Regenerate TLS machine certs? Warning: this is irreversible. (y/n): Regenerating TLS certificates
Waiting for SSH to be available…
Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded
Error checking TLS connection: Host is not running

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

Error getting IP address: 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

Maybe someone hadsimilar problem


(Sam) #2

did u run the docker app (whale) from your toolbar? that is what I do, then docker commands work…


(Sam) #3

i stopped the docker application on my mac, and then did docker ps in a command shell

and got the error u describe

sams-Mac-3:docker sam$ docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?


(Bryce Ryan) #4

This error might indicate a potential problem, i.e. that the VirtualBox installed on your system may need an update.