vpctl configure command
Manage registry credentials for vpctl.
読み終わるまでの所要時間 1 分最終更新 1日前
Use the command group to manage the registry credentials that vpctl uses to pull releases. vpctl stores your credentials securely in your home directory.
configureconfigure (interactive)
Set credentials interactively. The command prompts you for your username and password:
vpctl configure
By default, vpctl uses as the registry. To set credentials for a different registry, run .
uccmpprivatecloud.azurecr.iovpctl configure set <registry-url>configure get
View your current configuration:
vpctl configure get
onfigure set
Set credentials non-interactively. The registry argument is positional and defaults to . You can provide the password by using one of the following methods, listed from most to least secure for automation:
uccmpprivatecloud.azurecr.io--password-stdin--password-stdinecho "$REGISTRY_PASSWORD" | vpctl configure set <registry-url> --username "$REGISTRY_USERNAME" --password-stdin
Use the environment variable together with to supply the credentials through environment variables when piping isn't convenient:
VPCTL_PASSWORDVPCTL_USERNAMEexport VPCTL_USERNAME=<username>export VPCTL_PASSWORD=<password>vpctl configure set <registry-url>
Use to pass the password as a flag. This option is available only for backward compatibility and isn't recommended:
--passwordvpctl configure set <registry-url> --username <username> --password <password>
You can't use and together. If you don't specify either option, prompts you for the password interactively. If stdin isn't a terminal and isn't set, the command exits with an error instead of hanging.
--password--password-stdinvpctlVPCTL_PASSWORDconfigure delete
Remove stored credentials. The registry argument is positional and defaults to :
uccmpprivatecloud.azurecr.iovpctl configure delete <registry-url>