-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker push images to harbor occured unauthorized to access #13503
Comments
docker login successfully。 Pls refer to the docker push logs from /var/log/harbor/core.log Nov 13 11:35:11 172.22.0.1 core[30822]: 2020/11/13 03:35:11.688 #33[1;44m[D]#33[0m [transaction.go:62] | 127.0.0.1|#33[97;42m 200 #33[0m| 355.486¦Ìs| match|#33[97;44m GET #33[0m /api/v2.0/ping r:/api/v2.0/ping |
@KevinWang2015 Under the hood docker will get a token via |
in the middle of data transfer: unauthorized: unauthorized to access repository: evolve/redis, action: push: unauthorized to access repository: evolve/redis, action: push |
Hi, @KevinWang2015 it's really hard to debug the problem in this issue. Can you install an HTTP proxy tool and configure the Docker daemon to use the HTTP proxy and capture the HTTP request/response during the failed pushing? whistle (https://github.com/avwo/whistle) a good tool to capture the HTTP request/response. Note that after installation, enable the HTTPS feature. Then trust the rootca of the whistle in the system and enable HTTP proxy in docker daemon. See here https://docs.docker.com/config/daemon/systemd/#httphttps-proxy to configure the HTTPS proxy for the docker daemon. In the network panel of the whistle, find the failed request during pushing, and show it to me, thanks! |
@heww hi, i can't install whistle by software installation restrictions。
|
This issue may be caused by |
do you have https gateway server proxy harbor(http)?
if this Architecture , can change proxy mode nginx.conf
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I solved the issue by changeing my reverse proxy settings from http to https. (TLS is disabled in harbor) I alsow enabled http2 support in. I hope this helps someone. (: |
version: harbor 2.0
docker push images to harbor occured unauthorized to access repository:library/redis action:push with admin user
but If the docker client is in another datacenter, it is ok to push the image
is there someone give me some advices? thanks a lot
The text was updated successfully, but these errors were encountered: