docker login 登陆总是不成功 docker login 登陆总是不成功

今天在mac上登陆docker的aliyun仓库,一直报密码错误。网络上面别人提问的,这里记录一下。

sudo docker login --username=myusername registry.cn-hangzhou.aliyuncs.com
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
sudo: 3 incorrect password attempts

正确回答:

这个我也遇到啦
你用sudo了 所以显示的Password是要输入你的系统密码。。。 输入之后 还会显示Password然后再输入仓库密码 这里有说明 https://help.aliyun.com/knowledge_detail/60761.html

原文地址:https://developer.aliyun.com/ask/37749