Ejemplo n.º 1
0
 def getContainerInfo(self, container_id):
     try:
         ContainerInfo = self.__conn.inspect_container(container_id)
         ContainerInfo['State']['FinishedAt'] = Tools.formatXMLtime(
             ContainerInfo['State']['FinishedAt'])
         ContainerInfo['State']['StartedAt'] = Tools.formatXMLtime(
             ContainerInfo['State']['StartedAt'])
         ContainerInfo['Created'] = Tools.formatXMLtime(
             ContainerInfo['Created'])
         return ContainerInfo
     except Exception, e:
         print e
Ejemplo n.º 2
0
 def getImageInfo(self, image_id):
     try:
         ImageInfo = self.__conn.inspect_image(image_id)
         ImageInfo['Created'] = Tools.formatXMLtime(ImageInfo['Created'])
         return ImageInfo
     except Exception, e:
         print e