[root@docker ~]# docker login --help
Usage: docker login [OPTIONS] [SERVER]
Log in to a Docker registry.
If no server is specified, the default is defined by the daemon.
Options:
-p, --password string Password
--password-stdin Take the password from stdin
-u, --username string Username
[root@docker ~]# docker login -u jzyue
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
[root@docker ~]# docker push jzyue/tomcat01:1.0 #提交自己的镜像到dockerhub上
The push refers to repository [docker.io/jzyue/tomcat01]
cd2c8c332d4e: Pushing [==============>