(self, clone_file)
return self.container_id
Export a container creating a tar file of the rootfs
Export a container creating a tar file of the rootfs
Export a container creating a tar file of the rootfs
def export_tofile(self, clone_file):
        """Export a container creating a tar file of the rootfs
        """
        cont_dir = self.localrepo.cd_container(self.container_id)
        if not cont_dir:
            Msg().err("Error: container not found:", self.container_id)
            return False

        status = FileUtil(cont_dir + "/ROOT").tar(clone_file)
        if not status:
            Msg().err("Error: exporting container file system:",
                      self.container_id)

        return self.container_id
def export_tofile ( self , clone_file ) : cont_dir = self . localrepo . cd_container ( self . container_id ) if not cont_dir : Msg ( ) . err ( "Error: container not found:" , self . container_id ) return False status = FileUtil ( cont_dir + "/ROOT" ) . tar ( clone_file ) if not status : Msg ( ) . err ( "Error: exporting container file system:" , self . container_id ) return self . container_id