title: Cannot read docker container logs: Permission denied
body: <p>When issuing the <code>docker log &lt;container&gt;</code> command, I am getting the following error: </p>
  
  <pre><code>[root@Infra-1 ~]# docker logs gitlab-redis
  chmod: changing permissions of '/var/lib/redis': Permission denied
  </code></pre>
  
  <p><code>gitlab-redis</code> is a container that has exited.</p>
  
  <p>In fact, the directory does not exist at all:</p>
  
  <pre><code>[root@Infra-1 ~]# ls /var/lib/redis
  ls: cannot access /var/lib/redis: No such file or directory
  </code></pre>
  
  <p>I suppose that <code>docker log</code> is looking in the wrong location. Could it possibly have been misconfigured? Where should I check?</p>