If you are getting the following error
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied
while executing #Docker #Commands then please try the following steps.
1. Add current user to the docker group:
sudo usermod -a -G docker $USER
The above command will add the current user to the docker group.
2. Change the permission of docker.sock
sudo chmod 666 /var/run/docker.sock
3. Also check If the gid of the second command is not in the list of gids of the first command, you need to run the task as root or add the user to the group displayed by the second command.
list group ids of the current user: id --groups
show UID: gid of docker.sock: stat /var/run/docker.sock --format '%u:%g'
All the question that scared me now i am trying to scare them .. so that they cant scare others :)
Tuesday, December 28, 2021
Docker daemon socket at unix:///var/run/docker.sock: /var/run/docker.sock: connect: permission denied
Tuesday, September 14, 2021
HDD SATA NVM SSD
Just by replacing a mechanical disk with an #SSD or #nvmestorage your existing laptop/desktop machine become next-gen and you feel the better performance.
The following graph says it all.
#iot #innovation #DiskDrive #HDD #ssds #SSD #NVM #mechanical
Monday, March 1, 2021
Python 3: ImportError “No Module named Setuptools”
If you receive this error please try the following command:
sudo apt-get install python3-setuptools
For other versions like python2 run the following command:
sudo apt-get install python-setuptools
Permission denied while trying to connect to the Docker daemon socket
Try the following command in the terminal after installing Docker.
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
docker ps
Either reboot or log off and login and done.
Tuesday, February 16, 2021
Ubuntu Bluetooth doesn't Turn On
If you are also facing this issue that suddenly you are not able to turn on your Bluetooth in Ubuntu or any other Linux distro then you can try following, I got it fixed using the following:
Open terminal and run following command:
sudo rmmod btusb
sudo modprobe btusb
Featured Posts
#Linux Commands Unveiled: #date, #uname, #hostname, #hostid, #arch, #nproc
#Linux Commands Unveiled: #date, #uname, #hostname, #hostid, #arch, #nproc Linux is an open-source operating system that is loved by millio...
-
Hadoop is a batch processing system, and Hadoop jobs tend to have high latency and incur substantial overhead in job submission and sched...
-
Print numbers in order : #!/bin/bash for i in $(seq 0 4) do for j in $(seq $i -1 0) do echo -n $j done echo done Will gi...