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