ros-realtime/roscon-2023-realtime-workshop

Docker installation problem

Gaurang-1402 opened this issue · 1 comments

Hi, here's what i see when I run the commands recommended


chief-of-mischief@gaurang-legion:~/Desktop$ docker version | grep -A2 Client
Client: Docker Engine - Community
Cannot connect to the Docker daemon at unix:///home/chief-of-mischief/.docker/desktop/docker.sock. Is the docker daemon running?
 Version:           24.0.6
 API version:       1.43
chief-of-mischief@gaurang-legion:~/Desktop$ systemctl status docker
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset>
     Active: active (running) since Mon 2023-10-16 14:10:14 EDT; 2min 6s ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 7574 (dockerd)
      Tasks: 29
     Memory: 34.7M
        CPU: 614ms
     CGroup: /system.slice/docker.service
             └─7574 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/cont>

Oct 16 14:10:14 gaurang-legion systemd[1]: Starting Docker Application Containe>
Oct 16 14:10:14 gaurang-legion dockerd[7574]: time="2023-10-16T14:10:14.2729658>
Oct 16 14:10:14 gaurang-legion dockerd[7574]: time="2023-10-16T14:10:14.2733908>
Oct 16 14:10:14 gaurang-legion dockerd[7574]: time="2023-10-16T14:10:14.3874492>
Oct 16 14:10:14 gaurang-legion dockerd[7574]: time="2023-10-16T14:10:14.7583824>
Oct 16 14:10:14 gaurang-legion dockerd[7574]: time="2023-10-16T14:10:14.7982099>
Oct 16 14:10:14 gaurang-legion dockerd[7574]: time="2023-10-16T14:10:14.7983349>
Oct 16 14:10:14 gaurang-legion dockerd[7574]: time="2023-10-16T14:10:14.8803635>
Oct 16 14:10:14 gaurang-legion systemd[1]: Started Docker Application Container>
Oct 16 14:10:22 gaurang-legion dockerd[7574]: time="2023-10-16T14:10:22.6777447>
chief-of-mischief@gaurang-legion:~/Desktop$ sudo usermod -aG docker $USER
chief-of-mischief@gaurang-legion:~/Desktop$ docker version | grep -A2 Client
Cannot connect to the Docker daemon at unix:///home/chief-of-mischief/.docker/desktop/docker.sock. Is the docker daemon running?
Client: Docker Engine - Community
 Version:           24.0.6
 API version:       1.43
chief-of-mischief@gaurang-legion:~/Desktop$ ls -l /var/run/docker.sock
srw-rw---- 1 root docker 0 Oct 16 14:10 /var/run/docker.sock
chief-of-mischief@gaurang-legion:~/Desktop$ 

Is this okay or should I make changes?

Nevermind, I had to run the command in sudo mode and it gave the expcted behavior