Docker push到Harbor报错denied: requested access to the resource is denied
docker push 192.168.173.137/library/nginx
Using default tag: latest
The push refers to repository [192.168.173.137/library/nginx]
fd31601f0be4: Preparing
93b4c8c4ac05: Preparing
b7df9f234b50: Preparing
ab75a0b61bd1: Preparing
c1b1bf2f95dc: Preparing
4d99aab1eed4: Waiting
a483da8ab3e9: Waiting
denied: requested access to the resource is denied
解决方案:使用命令登录Harbor库
docker login 192.168.173.137
Username: admin
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/