When containers are started by `docker-compose` using the YAML version 2 format, the IP address will be empty for all containers. The problem is located in `dockerclient` go package. See https://github.com/tonistiigi/dnsdock/issues/59 and https://github.com/samalba/dockerclient/pull/234.