解决Docker仓库上传镜像报错“unauthorized unauthorized to access repository”

发布时间:2022-4-28 15:37

Docker仓库上传镜像出现:unauthorized: unauthorized to access repository的解决方法

root@BM1684-180:~# docker push 192.168.180.204:19080/ai-box/redis/soc:1.0

The push refers to repository [192.168.180.204:19080/ai-box/redis/soc]

50229a1335e3: Layer already exists

f3d92bfe600a: Layer already exists

15fb144574d8: Layer already exists

bca2357f91a7: Layer already exists

fdcf5ded3a5e: Layer already exists

388ba420b88d: Layer already exists

unauthorized: unauthorized to access repository: ai-box/redis/soc, action: push: unauthorized to access repository: ai-box/redis/soc, action: push

解决方法:

登录命令

docker login 192.168.180.204:19080

再次推送:

docker push 192.168.180.204:19080/ai-box/redis/soc:1.0

推送成功,即可在仓库管理平台上查看: