I won't say much nonsense, let's just look at the code~ # docker-compose down # ./prepare # docker-compose up –d Additional knowledge: After installing Harbor, Docker reports an error when connecting to the local warehouse After installing Harbor, Docker reports an error when connecting to the local warehouse. [root@master1 v2]# docker login dsp.images.hub:11180 Username: admin Password: Error response from daemon: Get https://node4:11180/v1/users/: http: server gave HTTP response to HTTPS client Need to configure vim /usr/lib/systemd/system/docker.service [Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com After=network.target firewalld.service [Service] Type=notify # the default is not to use systemd for cgroups because the delegate issues still # exists and systemd currently does not support the cgroup feature set required # for containers run by docker ExecStart=/usr/bin/dockerd --insecure-registry=heheda.images.hub:11180 ExecReload=/bin/kill -s HUP $MAINPID # Having non-zero Limit*s causes performance problems due to accounting overhead # in the kernel. We recommend using cgroups to do container-local accounting. LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity # Uncomment TasksMax if your systemd version supports it. # Only systemd 226 and above support this version. #TasksMax=infinity TimeoutStartSec=0 # set delegate yes so that systemd does not reset the cgroups of docker containers Delegate=yes # kill only the docker process, not all processes in the cgroup KillMode=process [Install] WantedBy=multi-user.target Then restart docker
In addition, remember to configure the mapping of hosts to dsp.images.hub. For Docker v18:
The above article about harbor restarting after modifying the configuration file is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Mysql anonymous login cannot create a database problem solution
>>: JavaScript implements draggable modal box
I recently encountered a problem. The emoticons o...
System tray icons are still a magical feature tod...
Installation of MySQL decompression version and N...
1. Installation Environment Computer model: Lenov...
Table of contents 1. JavaScript is single-threade...
mysql dirty pages Due to the WAL mechanism, when ...
The first article on data backup and restoration ...
How to achieve internationalization in React? The...
I was recently writing a lawyer recommendation we...
This article shares with you how to use thinkphp5...
There are always some problems when configuring n...
Table of contents What is the reason for the sudd...
Record some of the places where you spent time on...
1. Implementation principle of scrolling The scro...
Introduction to HTML HyperText Markup Language: H...