I have installed docker as described here. I use Ubuntu Trusty 14.04 (LTS) (64-bit). Everything during installation was well. Also command $ sudo docker run -i -t ubuntu /bin/bash completes well (after I typed "exit" in opened console. But when I tryin to do something else I get "permission denied". For example:
`$ sudo docker run -d -P training/webapp python app.py`
Reuslts in Post http:///var/run/docker.sock/v1.12/containers/create: dial unix /var/run/docker.sock: permission denied
` docker info`
Reuslts in Get http:///var/run/docker.sock/v1.12/info: dial unix /var/run/docker.sock: permission denied
How to solve this? I googled about the problem but I can not find a solution for my case.
exec $SHELLdid not. I'm interested to know by which mechanism logging out resolved the issue. This isn't windows! – Darth Egregious Feb 06 '16 at 02:43/etc/selinux/configand putSELINUX=disabled, then reboot Linux – Junior Mayhé May 10 '17 at 20:16newgrp docker $USERto enter the newly added group without having to restart a new session, though this is usually a more temporary solution if you have lots of things going on. – code_dredd May 29 '18 at 16:48