title: Unable to stop or remove a container in Docker, Permission denied is displayed
body: <p>I have run several containers from an image in different ports, but I cant stop or remove these containers. I have run this command:</p>
  
  <pre><code># sudo docker rm -f f85956145f61
  </code></pre>
  
  <p>And no message are displayed, however container is still displayed.</p>
  
  <p>I have tried with  these commands:</p>
  
  <pre><code># docker stop $(docker ps -a -q)
  # docker rm $(docker ps -a -q)
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code># Get http:///var/run/docker.sock/v1.15/containers/json?all=1: dial unix /var/run/docker.sock: permission denied
  </code></pre>
  
  <p>So, how can I remove all containers from my docker?</p>