mac docker push : requested access to the resource is denied / Error saving credentials

docker push的时候报错如下:

denied: requested access to the resource is denied

mac docker push : requested access to the resource is denied / Error saving credentials_第1张图片

是docker没有登录的原因, 使用docker login,输入dokcer id 和password,后又出现如下错误:

Error saving credentials: error storing credentials - err: exit status 1, out: `The user name or passphrase you entered is not correct.`

解决方法: 

1. 找到 钥匙串.app, 右键点击登录->锁定钥匙串登录->再解锁钥匙串登录即可,解锁时要输入mac的登录密码

mac docker push : requested access to the resource is denied / Error saving credentials_第2张图片

2. 操作完成后,返回去重新输入 docker login,输入docker id和password后,显示 Login Succeeded,成功

3. 重新执行 dock push 操作,上传到dockerhub成功!

mac docker push : requested access to the resource is denied / Error saving credentials_第3张图片

4. dockerhub上查看repository

mac docker push : requested access to the resource is denied / Error saving credentials_第4张图片

 

你可能感兴趣的:(Docker)