(self, cmdp)
return self.STATUS_OK
images: list container images
        images [options]
        -l                         :long format
images: list container images
        images [options]
        -l                         :long format
images : list container images images [ options ] - l : long format
def do_images(self, cmdp):
        """
        images: list container images
        images [options]
        -l                         :long format
        """
        verbose = cmdp.get("-l")
        dummy = cmdp.get("--no-trunc")
        dummy = cmdp.get("--all")
        if cmdp.missing_options():               # syntax error
            return self.STATUS_ERROR
        images_list = self.localrepo.get_imagerepos()
        Msg().out("REPOSITORY", l=Msg.INF)
        for (imagerepo, tag) in images_list:
            prot = (".", "P")[
                self.localrepo.isprotected_imagerepo(imagerepo, tag)]
            Msg().out("%-60.60s %c" % (imagerepo + ":" + tag, prot))
            if verbose:
                imagerepo_dir = self.localrepo.cd_imagerepo(imagerepo, tag)
                Msg().out("  %s" % (imagerepo_dir))
                layers_list = self.localrepo.get_layers(imagerepo, tag)
                if layers_list:
                    for (layer_name, size) in layers_list:
                        file_size = size / (1024 * 1024)
                        if not file_size and size:
                            file_size = 1
                        Msg().out("    %s (%d MB)" %
                                  (layer_name.replace(imagerepo_dir, ""),
                                   file_size))
        return self.STATUS_OK
def do_images ( self , cmdp ) : verbose = cmdp . get ( "-l" ) dummy = cmdp . get ( "--no-trunc" ) dummy = cmdp . get ( "--all" ) if cmdp . missing_options ( ) : # syntax error return self . STATUS_ERROR images_list = self . localrepo . get_imagerepos ( ) Msg ( ) . out ( "REPOSITORY" , l = Msg . INF ) for ( imagerepo , tag ) in images_list : prot = ( "." , "P" ) [ self . localrepo . isprotected_imagerepo ( imagerepo , tag ) ] Msg ( ) . out ( "%-60.60s %c" % ( imagerepo + ":" + tag , prot ) ) if verbose : imagerepo_dir = self . localrepo . cd_imagerepo ( imagerepo , tag ) Msg ( ) . out ( "  %s" % ( imagerepo_dir ) ) layers_list = self . localrepo . get_layers ( imagerepo , tag ) if layers_list : for ( layer_name , size ) in layers_list : file_size = size / ( 1024 * 1024 ) if not file_size and size : file_size = 1 Msg ( ) . out ( "    %s (%d MB)" % ( layer_name . replace ( imagerepo_dir , "" ) , file_size ) ) return self . STATUS_OK