Filebeat fails to send docker container logs to Logstash

I only needed to change Dockerfile to:
FROM docker.elastic.co/beats/filebeat:6.2.4
COPY filebeat.yml /usr/share/filebeat/filebeat.yml
USER root
As I had issues with file permissions, check this for more info:
Collecting logfiles of Docker containers with filebeat running as Docker container