(self, cmdp)
return exit_status
logout: authenticate into docker repository e.g. dockerhub
        -a remove all authentication credentials
        --registry=<url>          ex. https://registry-1.docker.io
logout: authenticate into docker repository e.g. dockerhub
        -a remove all authentication credentials
        --registry=<url>          ex. https://registry-1.docker.io
logout : authenticate into docker repository e . g . dockerhub - a remove all authentication credentials -- registry = <url > ex . https : // registry - 1 . docker . io
def do_logout(self, cmdp):
        """
        logout: authenticate into docker repository e.g. dockerhub
        -a remove all authentication credentials
        --registry=<url>          ex. https://registry-1.docker.io
        """
        all_credentials = cmdp.get("-a")
        registry_url = cmdp.get("--registry=")
        if cmdp.missing_options():  # syntax error
            return self.STATUS_ERROR
        self._set_repository(registry_url, None, None, None)
        if all_credentials:
            exit_status = self.keystore.erase()
        else:
            exit_status = self.keystore.delete(self.dockerioapi.registry_url)

        if exit_status == self.STATUS_ERROR:
            Msg().err("Error: deleting credentials")

        return exit_status
def do_logout ( self , cmdp ) : all_credentials = cmdp . get ( "-a" ) registry_url = cmdp . get ( "--registry=" ) if cmdp . missing_options ( ) : # syntax error return self . STATUS_ERROR self . _set_repository ( registry_url , None , None , None ) if all_credentials : exit_status = self . keystore . erase ( ) else : exit_status = self . keystore . delete ( self . dockerioapi . registry_url ) if exit_status == self . STATUS_ERROR : Msg ( ) . err ( "Error: deleting credentials" ) return exit_status