Fixing - permission denied trying to connect to Docker daemon socket at unix:///var/run/docker.sock

preview_player
Показать описание


You can fix the issue in the following ways -

1. Run the docker command as "sudo" .i.e. - sudo docker-compose up
2. Assigning current user to docker group .i.e. - sudo usermod -aG docker $USER
Рекомендации по теме
Комментарии
Автор

**please remind people that after usermod you need to reload the bash shell** exec su -l $USER

con_boy
Автор

Thanks Rahul you saved me hours of research

charmz
Автор

Hi, Thanks for sharing the video. Please add more videos on Docker.

naveenkumarmaddala
Автор

Most concise explanation I’ve heard for this issue. Thanks!

dominiquedoeslife
Автор

Restarting system was the key to my problem, thank you so much!

Markor
Автор

Both the options worked for me. Thank you very much

swapnil
Автор

Thanks Rahul for explaining this in detail...

pdpro
Автор

You helped me a lot with this video. Thank you very much

khaihoang
Автор

Thq u ..
Yesterday I am facing this issue

ashok.
Автор

Hi, I am running my Jenkins as a container on my host machine, I am able to run all docker command using normal user on host machine .while inside my container when I run any docker command it gives me permission denied error. I already add Jenkins user in docker group in Dockerfile.help me to fix this issue.

rohitrajkot
Автор

Thank you! Was usefull to fix an error in Ubuntu!

joanrojo
Автор

I am doing SSH to ec2 instance in VSCode. after sudo usermod -aG ubuntu, I am trying to logout but its showing bash: logout: not login shell: use `exit'...even after exit command I am getting the same problem for what you made the video..kindly reply what needs to be done

mwasheemk
Автор

YOU ARE AWESOME THANK YOU VERY MUCH!!!!

joeegarcia
Автор

no doubt your video is helpful Not working in my case I tried a lot,

hafsaali
Автор

I tried to stop, start docker daemon from non root user without using sudo its not working but remaining all docker commands working

sreekanth
Автор

Hi I have a docker compose file but I am unable to run it in internet restricted enviornment, I am getting connection refused, can you please help me, how do I run it

praveeniyer
Автор

i am not a sudo user,
so is there any othe way

waisyousofi
Автор

Hello sir, I am bhgayshree patil last 2 days I m stuck in this error
Error response from daemon: No such image: .sir please can you help me out

bhagyashreepattil
Автор

i tried that command, but showing usermod not found, using mac machine

TradeWithScence
Автор

usermod: group 'docker' does not exist

vasudevsawant