def __init__(self, image, container_id, name):
self.name = name<EOL>self._id = container_id<EOL>if not image:<EOL><INDENT>image_name = self.get_image_name()<EOL>if image_name:<EOL><INDENT>image = Image(image_name)<EOL><DEDENT><DEDENT>elif not isinstance(image, Image):<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>self.image = image<EOL>self._metadata = None<EOL>self.http_session = requests.Session()<EOL>
:param image: Image instance
:param container_id: str, unique identifier of this container
:param container_id: str, pretty container name