docker.sock permission denied : <p>When I try to run simple docker commands like:</p>

<pre><code>$ docker ps -a
</code></pre>

<p>I get an error message:</p>

<blockquote>
  <p>Got permission denied ... /var/run/docker.sock: connect: permission denied</p>
</blockquote>

<p>When I check permissions with</p>

<pre><code>$ ls -al /var/run/
</code></pre>

<p>I see this line:</p>

<pre><code>srw-rw---- root docker docker.sock
</code></pre>

<p>So, I follow an advice from many forums and add local user to docker group:</p>

<pre><code>$ sudo usermod -aG docker $USER
</code></pre>

<p>But it does not help. I still get the very same error message. How can I fix it?</p>
