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
1
u/Sh3llSh0cker 24d ago
i’m not sure what you done here without reading proper logs. if your looking to use docker and i mean proper docker..This is how I do it in my Home-Lab and at work. Clean, Isolated, and Lean. BTW this script also requires you to know at least no very strong fundamental basics of Docker and Docker Compose and how it works https://github.com/elysiummachines/cheat-sheet/blob/main/scripts/setup-docker.sh
0
u/luci-baa-baa-baa 25d ago
Are you enable the required kernal level options ? If you did correctly mostly then no issues.