(self, clone_file)
return self.container_id
Create a cloned container from a file containing a cloned container
        exported by udocker.
Create a cloned container from a file containing a cloned container
        exported by udocker.
Create a cloned container from a file containing a cloned container exported by udocker .
def clone_fromfile(self, clone_file):
        """Create a cloned container from a file containing a cloned container
        exported by udocker.
        """
        if not self.container_id:
            self.container_id = Unique().uuid(os.path.basename(self.imagerepo))

        container_dir = self.localrepo.setup_container(
            "CLONING", "inprogress", self.container_id)
        if not container_dir:
            Msg().err("Error: create container: setting up")
            return False

        status = self._untar_layers([clone_file, ], container_dir)
        if not status:
            Msg().err("Error: creating container clone:", self.container_id)
        elif not self._chk_container_root():
            Msg().out("Warning: check container content:", self.container_id,
                      l=Msg.WAR)

        return self.container_id
def clone_fromfile ( self , clone_file ) : if not self . container_id : self . container_id = Unique ( ) . uuid ( os . path . basename ( self . imagerepo ) ) container_dir = self . localrepo . setup_container ( "CLONING" , "inprogress" , self . container_id ) if not container_dir : Msg ( ) . err ( "Error: create container: setting up" ) return False status = self . _untar_layers ( [ clone_file , ] , container_dir ) if not status : Msg ( ) . err ( "Error: creating container clone:" , self . container_id ) elif not self . _chk_container_root ( ) : Msg ( ) . out ( "Warning: check container content:" , self . container_id , l = Msg . WAR ) return self . container_id