title: Can not run metricbeat in docker
body: <p>I am trying to run metricbeat using docker in windows machine and I have changed metricbeat.yml as per my requirement.</p>
  
  <pre><code>docker run -v /c/Users/someuser/docker/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml docker.elastic.co/beats/metricbeat:5.6.0
  </code></pre>
  
  <p>but getting these error </p>
  
  <blockquote>
    <p>metricbeat2017/09/17 10:13:19.285547 beat.go:346: CRIT Exiting: error
    loading config file: config file ("metricbeat.yml") can only be
    writable by the owner but the permissions are "-rwxrwxrwx" (to fix the
    permissions use: 'chmod go-w /usr/share/metricbeat/metricbeat.yml')
        Exiting: error loading config file: config file ("metricbeat.yml") can only be writable by the owner but the permissions are "-rwxrwxrwx"
    (to fix the permissions use: 'chmod go-w /
        usr/share/metricbeat/metricbeat.yml')</p>
  </blockquote>
  
  <p>Why I am getting this?</p>
  
  <p><strong>What is the right way to make permanent change in file content in docker container (As I don't want to change configuration file each time when container start)</strong></p>
  
  <p>Edit:
  Container is not meant to be edited / changed.If necessary, docker volume management is available to externalize all configuration related works.Thanks </p>