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
Sunday, August 30, 2020
module_stderr": "sudo: a password is required
This error appears when we try to run an ansible script with a user that is not enabled for passwordless sudo.
On this error we have two options with us:
1. Make the user run sudo without a password, for which open /etc/sudoers and put the following line for the user for which passwordless ssh is needed"
Then
shashwat ALL=(ALL:ALL) NOPASSWD: ALL
#Note: Add this line to the end of the file
Featured Posts
OBS Browser Source Not Working? How to Interact With Web Pages Inside OBS Studio
If you're using OBS Studio to display a website, YouTube page, dashboard, live poll, chat widget, or web application, you may notice so...
-
public struct CoOrds { public int x, y; public CoOrds( int p1, int p2) { x = p1; y = p2; } }
-
LM Studio Overview LM Studio is a desktop application designed for developing and experimenting with large language models (LLMs)...


