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
Table of contents Multiple conditional statements...
Table of contents Why do we need Docker? Docker d...
Sublime Sublime Text is a code editor (Sublime Te...
HTML is the abbreviation of Hypertext Markup Langu...
The use of ElementUI paging component Pagination ...
1. Question: I have been doing insert operations ...
This tutorial shares the installation and configu...
In the previous article, I introduced the functio...
The docker exec command can execute commands in a...
Overview Let's summarize some SQL statements ...
Table of contents 1. Function signature 2. Functi...
Effect html <div class="sp-container"...
This article describes how to install opencv with...
Table of contents Preface Optional Chaining Nulli...
Using the <img> element with the default sr...