(self, tarfile, destdir)
return not status
Untar container created with docker save
Untar container created with docker save
Untar container created with docker save
def _untar_saved_container(self, tarfile, destdir):
        """Untar container created with docker save"""
        #umask 022
        verbose = ''
        if Msg.level >= Msg.VER:
            verbose = 'v'

        cmd = ["tar", "-C", destdir, "-x" + verbose,
               "--delay-directory-restore", "--one-file-system",
               "--no-same-owner", "--no-same-permissions", "--overwrite",
               "-f", tarfile]

        status = Uprocess().call(cmd, stderr=Msg.chlderr, close_fds=True)
        return not status
def _untar_saved_container ( self , tarfile , destdir ) : #umask 022 verbose = '' if Msg . level >= Msg . VER : verbose = 'v' cmd = [ "tar" , "-C" , destdir , "-x" + verbose , "--delay-directory-restore" , "--one-file-system" , "--no-same-owner" , "--no-same-permissions" , "--overwrite" , "-f" , tarfile ] status = Uprocess ( ) . call ( cmd , stderr = Msg . chlderr , close_fds = True ) return not status