Ubuntu: docker warning config.json permission denied


I just installed docker and created a group and added my username to it to avoid using sudo every time. However when I do the test and run docker run hello-world it gives me following error: WARNING: Error loading config file:/home/user/.docker/config.json - stat /home/user/.docker/config.json: permission denied

But then it continues and gives a success message:Hello from Docker. This message shows that your installation appears to be working correctly. Any ideas whats wrong and what implications does it have?


Try running

sudo chown "$USER":"$USER" /home/"$USER"/.docker -R  sudo chmod g+rwx "/home/$USER/.docker" -R  

$USER is the username of the currently logged in user.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »