Skip to content

Instantly share code, notes, and snippets.

@kosyfrances
Created February 3, 2016 11:27
Show Gist options
  • Save kosyfrances/8ea2fc732ce69a1cf4ea to your computer and use it in GitHub Desktop.
Save kosyfrances/8ea2fc732ce69a1cf4ea to your computer and use it in GitHub Desktop.
Docker error while trying to connect

I had this error while running vagrant provision - ==>

The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.```

Even when trying docker commands I got something like -   
```ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?```

So I did this when i ssh into vagrant - 

`sudo service docker stop`  
`sudo rm /var/lib/docker/network/files/local-kv.db`  
`sudo service docker start`

More information can be found here - https://github.com/docker/docker/issues/17846#issuecomment-155233858
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment