# 之前已经登录了,现在退出
[root@compute ~]# docker logout
Removing login credentials for https://index.docker.io/v1/

# 再次登录
[root@compute ~]# 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: dockerhublzb
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

 

Logo

更多推荐