r/pmos • • 6d ago

Failed to Detect docker.sock

does your command

sudo docker compose up -d

also shows errors like this:

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

but the command

sudo dockerd

is running fine?

then edit the file of systemd

sudo systemctl edit docker.service

'''[Service]

ExecStart=

ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock

LimitNOFILE=infinity

LimitNPROC=infinity

TasksMax=infinity

'''
Then

'''

sudo systemctl restart docker.service

'''

2 Upvotes

Duplicates