Guys,
I am new to Docker. Am running Docker on my MAC. I've created on my docker-compose file this configuration:
filebeat:
depends_on:
- kibana
- logstash
container_name: filebeat
image: docker.elastic.co/beats/filebeat:${VERSION}
volumes:
- ./filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- /var/lib/docker/containers/:/var/lib/docker/containers/:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 8080:80
networks:
- elastic
On my filebeat.yml I have this code:
filebeat.autodiscover:
providers:
- type: docker
hints.enabled: true
labels.dedot: true
output.logstash:
hosts: logstash:5044
logging.level: debug
What I am doing wrong?
The error is:
> filebeat | Exiting: error in autodiscover provider settings: error setting up docker autodiscover provider: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?