def get_ip(container):
    """ Returns the IP adress of a specific container. """
    state = container.state()
    if state.network is None:
        return ''
    eth0 = state.network['eth0']
    for addr in eth0['addresses']:
        if addr['family'] == 'inet':
            return addr['address']
    return ''
