Linux command
crane-auth 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Login to a registry
crane auth login [registry] -u [username] -p [password]
Get authentication token
crane auth token [image]
Logout from registry
crane auth logout [registry]
说明
crane auth manages authentication for container registries. It stores credentials and retrieves authentication tokens for registry operations.
参数
- -u, --username _user_
- Username for authentication.
- -p, --password _pass_
- Password for authentication.
- --password-stdin
- Read password from stdin.
FAQ
What is the crane-auth command used for?
crane auth manages authentication for container registries. It stores credentials and retrieves authentication tokens for registry operations.
How do I run a basic crane-auth example?
Run `crane auth login [registry] -u [username] -p [password]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -u, --username _user_ do in crane-auth?
Username for authentication.