Hi All, most of you all received the above error when you ran the docker commands without sudo permission,

The above error says the user is not able to reach docker engine to perform the tasks. As a dirty fix, you can run the command with sudo if you don’t have time to fix. OR else you go to this solution.

here is the solution to recover from this issue


Step 1: Add the user to the docker group

sudo usermod -a -G docker $USER

After this, you would be able to perform docker commands without sudo.

if this doesn’t solve your issue to reboot the server once.

© 2018, Techrunnr. All rights reserved.

Questions Answered
Articles Written
Overall Points
Categories: devopsdocker

Prabhin Prabharkaran

He is Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!!


Leave a Reply

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.