I try the command dig +short myip.opendns.com @resolver1.opendns.com | tr -d '"' in docker, it returns nothing. The resolver1.opendns.com domain is poisoned in China. Could you please provide a more robust and reliable way in getting IP? This link provides a multiple source in getting ip.