lzzy12 / python-aria-mirror-bot

A telegram bot for all your mirror needs | OG Repo
https://t.me/pythonmirrorsupport
GNU General Public License v3.0
739 stars 1.3k forks source link

sudo dockerd #172

Closed dhairya137 closed 3 years ago

dhairya137 commented 3 years ago

when i run this command this gives me this sudo dockerd


INFO[2020-10-11T09:30:14.041443049Z] detected 127.0.0.53 nameserver, assuming systemd-resolved, so using resolv.conf: /run/systemd/resolve/resolv.conf
INFO[2020-10-11T09:30:14.042171054Z] parsed scheme: "unix"                         module=grpc
INFO[2020-10-11T09:30:14.042267067Z] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2020-10-11T09:30:14.042361334Z] ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0  <nil>}] <nil>}  module=grpc
INFO[2020-10-11T09:30:14.042444242Z] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2020-10-11T09:30:14.043718375Z] parsed scheme: "unix"                         module=grpc
INFO[2020-10-11T09:30:14.043786102Z] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2020-10-11T09:30:14.043836543Z] ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0  <nil>}] <nil>}  module=grpc
INFO[2020-10-11T09:30:14.043881498Z] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2020-10-11T09:30:14.070402030Z] [graphdriver] using prior storage driver: overlay2
failed to start daemon: error while opening volume store metadata database: timeout
ubuntu@ip-172-31-85-94:~$ sudo docker run mirror-bot
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.```
shubhindia commented 3 years ago

This means most probably ubuntu user doesn't have access to docker.sock . Run sudo chown ubuntu:ubuntu /var/run/docker.sock

anasty17 commented 3 years ago

sudo apt-get remove docker docker-engine docker.io sudo apt install docker.io sudo systemctl start docker sudo systemctl enable docker