(self, cmdp)
return self.STATUS_OK
name: give a name alias to a container
        name <container-id> <container-name>
name: give a name alias to a container
        name <container-id> <container-name>
name : give a name alias to a container name <container - id > <container - name >
def do_name(self, cmdp):
        """
        name: give a name alias to a container
        name <container-id> <container-name>
        """
        container_id = cmdp.get("P1")
        name = cmdp.get("P2")
        if cmdp.missing_options():               # syntax error
            return self.STATUS_ERROR
        if not (self.localrepo.get_container_id(container_id) and name):
            Msg().err("Error: invalid container id or name")
            return self.STATUS_ERROR
        if not self.localrepo.set_container_name(container_id, name):
            Msg().err("Error: invalid container name")
            return self.STATUS_ERROR

        return self.STATUS_OK
def do_name ( self , cmdp ) : container_id = cmdp . get ( "P1" ) name = cmdp . get ( "P2" ) if cmdp . missing_options ( ) : # syntax error return self . STATUS_ERROR if not ( self . localrepo . get_container_id ( container_id ) and name ) : Msg ( ) . err ( "Error: invalid container id or name" ) return self . STATUS_ERROR if not self . localrepo . set_container_name ( container_id , name ) : Msg ( ) . err ( "Error: invalid container name" ) return self . STATUS_ERROR return self . STATUS_OK