You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot log in to private registry, but can log in through docker
Steps to reproduce the issue
1.nerdctl
[root@m1 ~]# cat /etc/containerd/certs.d/registry.wzxmt.com/hosts.toml
server = "https://registry.wzxmt.com"
[host."https://registry.wzxmt.com"]
capabilities = ["pull", "resolve", "push"]
skip_verify = true
[root@m1 ~]# nerdctl login -u admin -p admin --insecure-registry registry.wzxmt.com
WARN[0000] WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARN[0000] skipping verifying HTTPS certs for "registry.wzxmt.com:443"
ERRO[0000] failed to call tryLoginWithRegHost error="failed to call rh.Authorizer.AddResponses: expected acArg to be "registry.wzxmt.com:443", got "registry.wzxmt.com"" i=0
ERRO[0000] failed to call tryLoginWithRegHost error="failed to call rh.Authorizer.AddResponses: expected acArg to be "registry.wzxmt.com:443", got "registry.wzxmt.com"" i=1
FATA[0000] failed to call rh.Authorizer.AddResponses: expected acArg to be "registry.wzxmt.com:443", got "registry.wzxmt.com"
2.docker
[root@ad02 ~]# grep insecure-registries /etc/docker/daemon.json
"insecure-registries":["registry.wzxmt.com"],
[root@ad02 ~]# docker login -u admin -p admin registry.wzxmt.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
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/engine/reference/commandline/login/#credentials-store
Description
Cannot log in to private registry, but can log in through docker
Steps to reproduce the issue
1.nerdctl
[root@m1 ~]# cat /etc/containerd/certs.d/registry.wzxmt.com/hosts.toml
server = "https://registry.wzxmt.com"
[host."https://registry.wzxmt.com"]
capabilities = ["pull", "resolve", "push"]
skip_verify = true
[root@m1 ~]# nerdctl login -u admin -p admin --insecure-registry registry.wzxmt.com
WARN[0000] WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARN[0000] skipping verifying HTTPS certs for "registry.wzxmt.com:443"
ERRO[0000] failed to call tryLoginWithRegHost error="failed to call rh.Authorizer.AddResponses: expected acArg to be "registry.wzxmt.com:443", got "registry.wzxmt.com"" i=0
ERRO[0000] failed to call tryLoginWithRegHost error="failed to call rh.Authorizer.AddResponses: expected acArg to be "registry.wzxmt.com:443", got "registry.wzxmt.com"" i=1
FATA[0000] failed to call rh.Authorizer.AddResponses: expected acArg to be "registry.wzxmt.com:443", got "registry.wzxmt.com"
2.docker
[root@ad02 ~]# grep insecure-registries /etc/docker/daemon.json
"insecure-registries":["registry.wzxmt.com"],
[root@ad02 ~]# docker login -u admin -p admin registry.wzxmt.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
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/engine/reference/commandline/login/#credentials-store
Login Succeeded
Describe the results you received and expected
none
What version of nerdctl are you using?
[root@m1 ~]# nerdctl version
Client:
Version: v2.0.3
OS/Arch: linux/amd64
Git commit: ce61fc4
buildctl:
Version: v0.18.2
GitCommit: e4da654b1251f91e914fab18eba33743aefd7080
Server:
containerd:
Version: v2.0.3
GitCommit: 06b99ca80cdbfbc6cc8bd567021738c9af2b36ce
runc:
Version: 1.2.4
GitCommit: v1.2.4-0-g6c52b3fc
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
[root@m1 ~]# nerdctl info
Client:
Namespace: k8s.io
Debug Mode: false
Server:
Server Version: v2.0.3
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:
seccomp
Profile: builtin
cgroupns
Kernel Version: 5.14.0-427.13.1.el9_4.x86_64
Operating System: Rocky Linux 9.4 (Blue Onyx)
OSType: linux
Architecture: x86_64
CPUs: 6
Total Memory: 7.724GiB
Name: m1
ID: 3d928b70-dfb1-46b8-84ae-fa3e9800f163
The text was updated successfully, but these errors were encountered: