-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle 'cannot connect to Docker daemon' correctly #9
Comments
Strange, Does this script execute for you?
|
It did not reach the echo statement. This is really minor in the grand scheme of thing, as the errors are outputted along the way. |
Previously, `set +e` was used, which was then carried to `ask_clean` This may explain the problem seen in issue algorand#9.
* Do not ignore errors if data folder corrupted Previously, `set +e` was used, which was then carried to `ask_clean` This may explain the problem seen in issue #9. * Test if docker running before asking to reset sandbox Avoid users resetting sandbox before realizing that the issue was that Docker was not running.
@purestaketdb could you see if the improvement @fabrice102 made fixes this? |
Let me know if this is still an issue, closing due to inactivity. |
I just ran into this issue with "connection refused". It looks like the docker.pid or docker.sock permissions have to be changed to allow a connection. The Docker installation guide is a misleading because it considers docker installed successfully when the command However, without running as root:
Based on a stackoverflow answer you can do this to fix the issue:
After doing this I was able to run the As per #23 it would be great to see this mentioned in the README or to see a more helpful error message that suggests doing the above. |
Thanks @modernlearner for your answer to detect Docker running. However, doing
should only be done on experimental machines without any important data. On Linux, it indeed gives full root access to any user of the machine. Adding your username to the group
(followed by logging out and logging back in) |
Minor issue when running './sandbox up' on OS X when the Docker daemon has been turned off. Sandbox util incorrectly reports progress, while also showing errors from Docker.
`Building a new Docker Image...
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERRO[0000] failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: connection refused
Starting a new Docker Container...
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
Sandbox started! Printing status...
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?`
Fix: Correct flow to exit out if daemon is not running or update bolded status messages to indicate issue.
The text was updated successfully, but these errors were encountered: