def METHOD_NAME(network):
    METHOD_NAME = {}
    for container in list_containers():
        output = subprocess.check_output(["docker", "inspect", container])
        networking = json.loads(output)[0]["NetworkSettings"]
        hostname = networking["Networks"].get(network, {}).get("IPAddress")
        if hostname:
            METHOD_NAME[container] = hostname
    return METHOD_NAME