The function dockerService.getIPs() first tries to get the sandbox IP through the network plugin, and if that fails, runs a "docker inspect" and checks the resulting JSON for the fields NetworkSettings.IPAddress and NetworkSettings.GlobalIPv6Address. However, these fields don't exist - apparently they were removed back in Docker 1.11. The code should instead retrieve NetworkSettings.Networks[networkName].IPAddress - of course taking into account that on Windows, Docker turns the network name default into nat.
In addition, going by the code, it seems getIPs() would log the message "Failed to read pod IP" even if it did manage to retrieve the IP this way.
The function dockerService.getIPs() first tries to get the sandbox IP through the network plugin, and if that fails, runs a "docker inspect" and checks the resulting JSON for the fields
NetworkSettings.IPAddressandNetworkSettings.GlobalIPv6Address. However, these fields don't exist - apparently they were removed back in Docker 1.11. The code should instead retrieveNetworkSettings.Networks[networkName].IPAddress- of course taking into account that on Windows, Docker turns the network namedefaultintonat.In addition, going by the code, it seems getIPs() would log the message "Failed to read pod IP" even if it did manage to retrieve the IP this way.