making get_ips method as ips in create_container script