FAQs
Could Not Connect To Docker
If you have Docker up and running and get the following error, please read on:
Quick fix
Create the /var/run/docker.sock
symlink using:
In 99% of the cases, this should work. If it doesnt, try:
Full details
Phidata uses docker-py to run containers, and if the /var/run/docker.sock
is missing or has incorrect permissions, it cannot connect to docker.
To fix, please create the /var/run/docker.sock
file using:
If that does not work, check the permissions using ls -l /var/run/docker.sock
.
If the /var/run/docker.sock
does not exist, check if the $HOME/.docker/run/docker.sock
file is missing. If its missing, please reinstall Docker.
If none of this works and the /var/run/docker.sock
exists:
- Give your user permissions to the
/var/run/docker.sock
file:
- Give your user permissions to the docker group:
More info
Was this page helpful?