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仓库上传镜像出现unauthorized unauthorized to access repository - 图1

    解决方法:
    登录命令
    docker login 192.168.180.204:19080

    Docker仓库上传镜像出现unauthorized unauthorized to access repository - 图2

    再次推送:
    docker push 192.168.180.204:19080/ai-box/redis/soc:1.0
    Docker仓库上传镜像出现unauthorized unauthorized to access repository - 图3
    推送成功,即可在仓库管理平台上查看:

    Docker仓库上传镜像出现unauthorized unauthorized to access repository - 图4