I have ubuntu 22.04 and have a Admin account and a normal user account. Have given normal user access for sudo docker commands by editing file (sudo visudo) have also tried some of the commands but still after running it as a normal user getting this error docker run hello-world docker: Cannot connect to the Docker daemon at unix:///home/hexa/.docker/desktop/docker.sock. Is the docker daemon running?. See 'docker run --help'. Your Help will be appreciated
sudo groupadd docker sudo usermod -aG docker $USER
Regarding error text, need to check first is the docker demon started, if you're using docker desktop, the desktop application should be opened
I recommend you try to execute docker command from root first to exclude permission issue, if
docker pswill work from root, let's check it from your user