def image_id(self):
        """ this container is created from image with id..."""
        try:
            # docker >= 1.9
            image_id = self.data["ImageID"]
        except KeyError:
            # docker <= 1.8
            image_id = self.metadata_get(["Image"])
        return image_id
def image_id ( self ) : try : image_id = self . data [ "ImageID" ] except KeyError : image_id = self . metadata_get ( [ "Image" ] ) return image_id
this container is created from image with id...