harborRestart operation after modifying the configuration file

harborRestart operation after modifying the configuration file

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

systemctl daemon-reload

systemctl restart docker

In addition, remember to configure the mapping of hosts to dsp.images.hub.

For Docker v18:

{"data-root":"/data/docker","insecure-registries":["11.68.0.0/16","heheda.images.hub:11180"],"registry-mirrors":["http://mirror.kce.sdns.ksyun.com"]}

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:
  • Steps to set up and mount shared folders on Windows host and Docker container
  • Docker image import, export, backup and migration operations
  • Docker Nginx container and Tomcat container to achieve load balancing and dynamic and static separation operations
  • Detailed explanation of the Docker container lifecycle architecture and the differences between it and VM
  • Docker image creation Dockerfile and commit operations

<<:  Mysql anonymous login cannot create a database problem solution

>>:  JavaScript implements draggable modal box

Recommend

A brief discussion on how to write beautiful conditional expressions in JS

Table of contents Multiple conditional statements...

How to deploy Go web applications using Docker

Table of contents Why do we need Docker? Docker d...

Basic knowledge of HTML: a preliminary understanding of web pages

HTML is the abbreviation of Hypertext Markup Langu...

How to use ElementUI pagination component Pagination in Vue

The use of ElementUI paging component Pagination ...

MySql inserts data successfully but reports [Err] 1055 error solution

1. Question: I have been doing insert operations ...

MySQL 5.6.33 installation and configuration tutorial under Linux

This tutorial shares the installation and configu...

Docker exec executes multiple commands

The docker exec command can execute commands in a...

Function overloading in TypeScript

Table of contents 1. Function signature 2. Functi...

CSS3 text animation effects

Effect html <div class="sp-container"...

Detailed explanation of the correct way to install opencv on ubuntu

This article describes how to install opencv with...

A brief discussion of 3 new features worth noting in TypeScript 3.7

Table of contents Preface Optional Chaining Nulli...

CSS World--Code Practice: Image Alt Information Presentation

Using the <img> element with the default sr...