λ docker exec -it docker_metricbeat_1 sh
sh-4.2# metricbeat setup --dashboards
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')
metricbeat.yml is mounted as read-only in docker-compose:
volumes:
- ./config/metricbeat/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro
Why is setup complaining metricbeat.yml
is read-only?
Setup shouldn't write to this file, so it should ignore write access.
Github issue: https://github.com/elastic/beats/issues/23657