def _write_container_details(container_id, container_ip, details_path): path(details_path).write_text(yaml.safe_dump({ 'id': container_id, 'ip': container_ip, }))