-
Notifications
You must be signed in to change notification settings - Fork 648
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
Error 503 when trying to login to private registry #4050
Comments
Can you provide logs using --debug-full? (eg: Thanks |
This is working fine with above ^, so, I assume something is different in your case - which is why I need logs. Also, if you have any specific hosts.toml configuration, please share it as well. |
Here is the output with the
Sometimes I do not even get a chance to fill in the password and see that the 503 error was already logged. I do not use any custom hosts.toml configuration. |
What is the value of $registry_domain? |
Also: do you use a proxy? |
Is this all you get in the logs? Given the symptoms you describe, intuition is that the registry you try to contact is not happy with a port in the url and/or To confirm that, I would need more information about that registry. Ideally the registry logs for that error. The Registry URL being used. What product is that (satisfactory, other). What version. Is it configured behind a reverse proxy. Etc. Without these, it is going to be hard to give you a firm diagnosis. |
I can’t share the exact registry domain but it’s the official Gitlab container registry offered in the Gitlab CE version. Yes, that is the full output I get when using I sadly can’t access the registry‘s logs. Is there maybe a specific header that is being sent when using |
Understood.
Unfortunately, we do not test against Gitlab yet, but I am not surprised that Gitlab Registry behavior is not fully ironed out.
Then:
|
Thank you for the quick reply. I do not have a ~/.docker/config.json as I fully use nerdctl and have not used
|
Ok...
^ copy the full output of this (redact your domain name of course). |
Here you go:
|
The issue is the host header. Without it I am able to access the registry correctly and also receive the expected 401 Unauthorized response. Edit: It also works when editing the Host header to not include the port. |
Description
When using
nerdctl login
I am unable to successfully login to a private Gitlab container registry.Steps to reproduce the issue
docker
withnerdctl
Describe the results you received and expected
I receive the following error message:
Using
docker login
works perfectly fine as well as ctr to pull and push images directly. Also when using curl to retrieve https://${REGISTRY_DOMAIN}:443/v2 I never receive a 503 status code.What version of nerdctl are you using?
2.0.4
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
Client:
Namespace: default
Debug Mode: false
Server:
Server Version: v2.0.4
Storage Driver: overlayfs
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Log: fluentd journald json-file none syslog
Storage: native overlayfs
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.8.0-52-generic
Operating System: Ubuntu 22.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 48
Total Memory: 251.2GiB
Name: IPA-AIMV-80908-WS1
ID: c0a19b0a-6f33-4389-bf05-912556ac9660
WARNING: IPv4 forwarding is disabled
The text was updated successfully, but these errors were encountered: