elastalert
elastalert copied to clipboard
WARNING: Published ports are discarded when using host network mode
Hi all, I run this docker command, but it always brings up the error "Published port are discarded...", and this will cause the container down, port 3030 will not accessible, kibana will get the error "502 - Bad Gateway, Client request error: connect ECONNREFUSED 127.0.0.1:3030", so could someone can help me, thanks. root@elk:~/elastalert# docker run -d -p 3030:3030 -p 3333:3333 \
-v `pwd`/config/elastalert.yaml:/opt/elastalert/config.yaml \ -v `pwd`/config/elastalert-test.yaml:/opt/elastalert/config-test.yaml \ -v `pwd`/config/config.json:/opt/elastalert-server/config/config.json \ -v `pwd`/rules:/opt/elastalert/rules \ -v `pwd`/rule_templates:/opt/elastalert/rule_templates \ --net="host" \ --name elastalert bitsensor/elastalert:latest
Unable to find image 'bitsensor/elastalert:latest' locally latest: Pulling from bitsensor/elastalert e7c96db7181b: Pull complete a9b145f64bbe: Pull complete Digest: sha256:c80f54a6743778908a08876e157bea8013a92e5dabfdf4fca0737d3e7d105b97 Status: Downloaded newer image for bitsensor/elastalert:latest WARNING: Published ports are discarded when using host network mode f71b9bd4a0581ba599a9203f8268fa98cacd349fdaed012ba209f69e5d302062
Any Update on this .. getting the same issue