(self, cmdp)
return self.STATUS_OK
load: load an  image saved by docker with 'docker save'
        load [options] <repo/image>
        --input=<image-file>        :load image file saved by docker
        -i <image-file>             :load image file saved by docker
load: load an  image saved by docker with 'docker save'
        load [options] <repo/image>
        --input=<image-file>        :load image file saved by docker
        -i <image-file>             :load image file saved by docker
load : load an image saved by docker with docker save load [ options ] <repo / image > -- input = <image - file > : load image file saved by docker - i <image - file > : load image file saved by docker
def do_load(self, cmdp):
        """
        load: load an  image saved by docker with 'docker save'
        load [options] <repo/image>
        --input=<image-file>        :load image file saved by docker
        -i <image-file>             :load image file saved by docker
        """
        imagefile = cmdp.get("--input=")
        if not imagefile:
            imagefile = cmdp.get("-i=")
            if not imagefile:
                imagefile = '-'
        from_stdin = cmdp.get('-')
        if from_stdin:
            imagefile = '-'
            cmdp.get("-i")
        imagerepo = cmdp.get("P1")
        if imagerepo == '-':
            imagefile = '-'
            imagerepo = cmdp.get("P2")
        if cmdp.missing_options():  # syntax error
            return self.STATUS_ERROR
        if not imagefile:
            Msg().err("Error: must specify filename of docker exported image")
            return self.STATUS_ERROR
        if imagerepo and not self._check_imagerepo(imagerepo):
            return self.STATUS_ERROR
        repos = self.localfileapi.load(imagefile, imagerepo)
        if not repos:
            Msg().err("Error: load failed")
            return self.STATUS_ERROR
        for repo_item in repos:
            Msg().out(repo_item)
        return self.STATUS_OK
def do_load ( self , cmdp ) : imagefile = cmdp . get ( "--input=" ) if not imagefile : imagefile = cmdp . get ( "-i=" ) if not imagefile : imagefile = '-' from_stdin = cmdp . get ( '-' ) if from_stdin : imagefile = '-' cmdp . get ( "-i" ) imagerepo = cmdp . get ( "P1" ) if imagerepo == '-' : imagefile = '-' imagerepo = cmdp . get ( "P2" ) if cmdp . missing_options ( ) : # syntax error return self . STATUS_ERROR if not imagefile : Msg ( ) . err ( "Error: must specify filename of docker exported image" ) return self . STATUS_ERROR if imagerepo and not self . _check_imagerepo ( imagerepo ) : return self . STATUS_ERROR repos = self . localfileapi . load ( imagefile , imagerepo ) if not repos : Msg ( ) . err ( "Error: load failed" ) return self . STATUS_ERROR for repo_item in repos : Msg ( ) . out ( repo_item ) return self . STATUS_OK