repository 仓库
命令使用
登录 docker login
Usage:
docker login [OPTIONS] [SERVER] [flags]
docker login [command]
PS C:\Users\DELL> docker login --help
Log in to a Docker registry or cloud backend.
If no registry server is specified, the default is defined by the daemon.
Usage:
docker login [OPTIONS] [SERVER] [flags]
docker login [command]
Available Commands:
azure Log in to azure
Flags:
-h, --help Help for login
-p, --password string password
--password-stdin Take the password from stdin
-u, --username string username
Use "docker login [command] --help" for more information about a command.
PS C:\Users\DELL>
PS C:\Users\DELL> docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: xiaohui92
Password:
Login Succeeded
PS C:\Users\DELL>
退出登录 docker logout
Usage:
docker logout [SERVER] [flags]
docker logout [command]
PS C:\Users\DELL> docker logout --help
Log out from a Docker registry or cloud backend.
If no server is specified, the default is defined by the daemon.
Usage:
docker logout [SERVER] [flags]
docker logout [command]
Available Commands:
azure Logout from Azure
Flags:
-h, --help Help for logout
Use "docker logout [command] --help" for more information about a command.
PS C:\Users\DELL> docker logout
Removing login credentials for https://index.docker.io/v1/
PS C:\Users\DELL>