title: Error: Permission denied - /usr/share/logstash/sincedb/sincedb
body: <p>I have a <code>docker-compose</code> file for running several containers including Logstash. I have mapped the mounted <code>sincedb</code> as in the snippet:</p>
  
  <pre><code>logstash:
  build:
    context: logstash/
  volumes:      
    - ./tmp/logstash/sincedb:/usr/share/logstash/sincedb
  </code></pre>
  
  <p>The Logstash container has some permission errors, in particular with accessing sincedb as shown in the error snippet below:</p>
  
  <pre><code>Error: Permission denied - /usr/share/logstash/sincedb/sincedb
  Exception: Errno::EACCES
  </code></pre>
  
  <p>I tried to execute within the container chmod but I get some the errors below: </p>
  
  <pre><code>bash-4.2$ chmod o+wx /usr/share/logstash/sincedb/
  chmod: changing permissions of ‘/usr/share/logstash/sincedb/’: Operation not permitted
  </code></pre>
  
  <p>Is there a way to overcome this permission issue ?</p>