Hi @mwsprotte Welcome to the community!
Docker Networking Issue not Elastic...
Another explanation
Might be worth reading... if you are new to docker
try using
host.docker.internal
docker run \
--net=elastic docker.elastic.co/beats/filebeat:7.17.4 \
setup -E setup.kibana.host=host.docker.internal:5601 \
-E output.elasticsearch.hosts=["https://host.docker.internal:9200"]