Closed simonholgate closed 5 years ago
In swarm mode, containers running on other hosts are not always detected by netstat -t. This fix uses dig instead, based on https://stackoverflow.com/questions/49446165/how-to-get-all-ip-addresses-on-a-docker-network
netstat -t
dig
Great!! 👍 Looks a lot cleaner too. Thanks for solving that lingering issue that I noticed in the beginning but only knew to restart when it happened.
In swarm mode, containers running on other hosts are not always detected by
netstat -t
. This fix usesdig
instead, based on https://stackoverflow.com/questions/49446165/how-to-get-all-ip-addresses-on-a-docker-network