DebugAH

How to Solve Your Programmer Error

Skip to content
  • Home
  • Linux
  • JAVA
  • Python
  • Javasript
  • MYSQL
  • Windows
  • Error

An error is reported when logging into harbor warehouse with docker login of other hosts

When doing microservices, I was about to deploy the compiled jar package to my Harbor repository, but I couldn’t log in, and the following error was reported.

[[email protected] ~]# docker login 192.168.30.24
Username: admin
Password:
Error response from daemon: Get https://192.168.30.24/v2/: dial tcp 192.168.30.24:443: connect: connection refused
Here it says connection refused, because I am using http deployment of harbor, here is https://进行访问的, all appear to report an error

Then the solution to this problem is actually in the /etc/docker/daemon.json file

Add the authentication to the private repository and you can login

[[email protected] ~]# vim /etc/docker/daemon.json

{
“registry-mirrors”: [“http://f1361db2.m.daocloud.io”],
“insecure-registries”: [“192.168.30.24”]
}

Restart docker
[[email protected] ~]# systemctl restart docker

Login, it says you are already logged in, on another host. ok, problem solved

[[email protected] ~]# docker login 192.168.30.24
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/engine/reference/commandline/login/#credentials-store

Login Succeeded

 

Similar Posts:

  • docker pull Error: Get https://hub.xxx.com/v1/_ping: dial tcp 192.168.1.8:443: getsockopt: connection refused
  • Harbor 443 connect connection refused [How to Solve]
  • Docker login harbor 403 Forbidden [How to Solve]
  • Rabbitmq simple configuration and oserror: [errno 9] bad file descriptor problem
  • [Solved] http: server gave HTTP response to HTTPS client
  • When Docker installs an Mirror: failed to get default registry endpoint from daemon
  • Docker ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [How to Solve]
  • An error is reported when the docker command is executed in Jenkins
  • [Solved] kubeadm join 192.168.50.66:6443 –token 0109we.c3a3ofn0y0lmp0w9 –discovery-token-ca-cert-hash sha256:262f5eefdbeba51e6875cba5ed6e34061ad679f8a21f6e295d9fbd5ef05757e4
  • docker unauthorized: incorrect username or password

This entry was posted in Error and tagged docker login, Harbor on July 29, 2021 by Robins.

Post navigation

← [Solved] Error in installing RPM package in CentOS – no key How to Solve Rabbitmq Error: Failed to start RabbitMQ broker →

Recent Posts

  • [Solved] The bean ‘sysDictService’ could not be injected because it is a JDK dynamic proxy
  • How to Use awk to Analyze Nginx Log
  • [Solved] Win-KeX/wsl2/kali Startup Error: A fatal error has occurred and VcXsrv will now exit.
  • [Solved] samtools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file
  • k8s Error: [ERROR FileAvailable–etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
  • [Solved] NoSuchMethodError: org.springframework.boot.web.servlet.error.ErrorController.getErrorPath
  • [Solved] flink web ui Submit Task Error: Server Respoonse Message-Internal server error
  • Mysql Error: 1140 – In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column ‘a.store’; this is incompatible with sql_mode=only_full_group_by
  • [Solved] Mybatis multi-table query error: Column ‘id’ in field list is ambiguous
  • [Solved] fluentd Log Error: read timeout reached

Tags

  • )
  • android
  • android studio
  • CentOS
  • centos7
  • chrome
  • DebugAH
  • django
  • docker
  • eclipse
  • git
  • github
  • go
  • hadoop
  • Hive
  • IDEA
  • ios
  • java
  • jenkins
  • Linux
  • Mac
  • maven
  • MyBatis
  • mysql
  • nginx
  • No module named XXX error
  • npm
  • Oracle
  • php
  • pip
  • pycharm
  • Python
  • Python TypeError
  • redis
  • shell
  • spring
  • springBoot
  • ssh
  • SVN
  • tensorflow
  • tomcat
  • ubuntu
  • vue
  • Windows
  • Yum
Proudly powered by WordPress