Docker login 命令
作用
login
命令用于登录 Docker 仓库。
用法
Usage: docker login [OPTIONS] [SERVER]
Register or log in to a Docker registry server, if no server is
specified "https://index.docker.io/v1/" is the default.
-e, --email= Email
--help=false Print usage
-p, --password= Password
-u, --username= Username
示例
[email protected]:~# docker login
Username: username
Password: ****
Email: [email protected]
Login Succeeded
如果你有一个自己的仓库,你也可以连接到指定主机:
$ sudo docker login localhost:8080