R
Runtipi5d ago
Jack

Cannot connect to the docker daemon

Hi everyone - can't figure out what's going on here. I have runtipi installed, am running multiple containers, and they all work fine, but when I try to do anything CLI-based like update tipi or enter a container console/log I get this error: Cannot connect to the Docker daemon at unix:///home/jack/.docker/desktop/docker.sock. Is the docker daemon running? I don't understand how my whole server setup could be working fine if it wasn't running, so maybe this is a user permissions issue? When I use systemctl to list processes it says the Docker service is running (see attached). The specific thing I'd like to do is use docker exec to install HACS for Home Assistant. If anyone can help me figure out what's going on I'd appreciate it.
No description
16 Replies
Stavros
Stavros5d ago
Have you tried using sudo?
Jack
JackOP5d ago
I'm using sudo when I do docker commands, still get the error. I can try sudoing my systemctl checks and see if I get more info
Stavros
Stavros5d ago
How did you install docker?
Jack
JackOP5d ago
I used to have Docker Desktop on this machine but I uninstalled it and then installed runtipi with the install command could it be looking in the wrong place for an old version of the daemon?
Stavros
Stavros5d ago
Are you sure you didn't use snap or that docker was completely uninstalled before installing runtipi
Jack
JackOP5d ago
I guess I'm not 100% sure. I don't think I used a snap because I installed everything via CLI
Stavros
Stavros5d ago
Can you share the output of docker -v
Jack
JackOP5d ago
version 28.2.2, build e6534b4
Stavros
Stavros5d ago
Alright can you try sudo docker ps
Jack
JackOP5d ago
Yep that lists all my tipi containers and their uptime. I can screenshot the whole output if that'd help
Stavros
Stavros5d ago
Oh Didn't notice the original output Seems like docker is trying to connect to a local socket Leftover from docker desktop Normally the socket should be at /var/run/docker.sock Try docker context use default And then try to do docker ps
Jack
JackOP5d ago
Hm yeah that file seems to not be there
No description
Jack
JackOP5d ago
ps gives me the same list as before, everything is up and healthy
Stavros
Stavros5d ago
Ok try to use the CLI now With sudo
Jack
JackOP5d ago
Looks like it's doing something before it would throw an error on step 2 so I think this is working It's taking a while to restart the containers but the initial problem is solved. Thanks a bunch! none of the google results hinted at the context-default thing
Stavros
Stavros5d ago
You probably should be able to do docker context ls and remove everything with docker context rm except the default one

Did you find this page helpful?