By default, you have installed docker here, and the docker version is the latest version 20 or above
Because I installed this harbor version is 2.41 it requires the latest version
well, stop talking nonsense
One: Harbor download and install
Harbor GitHub official address:
Release v2.4.1 · goharbor/harbor · GitHubhttps://github.com/goharbor/harbor/releases/tag/v2.4.1
Don't complain about the domestic network, the download speed is really slow,
Here I provide a Baidu cloud download
Baidu network disk, please enter the extraction code https://pan.baidu.com/s/1lqAJx6_3v4IGyfN7dcZy8A?pwd=zdtk&_at_=1641988066509 Extraction code: zdtk
2: Modify harbor.yml
cp harbor.yml.tmpl harbor.yml
Copy a copy of harbor.yml.tmpl and rename it to harbor.yml
Modify harbor.yml
Simply change it here
Change hostname to the ip of your server, port is the port you want to access harbor_admin_password is your login password for a while I don’t have https here, so I commented out https
Then, start
./install.sh
3: Login
4: Upload the image to the private server
First log in through docker login <your service ip: port>
Then pack it into a conforming format through tag
docker tag hello-world 192.168.18.184:10001/library/ccc
Pay attention to this format, I overturned for a long time when uploading hereThe path he asked you to upload (that is, the path you logged in)/(the name of the project in the project)/the rule of your new name
the project name
uploaded successfully
View the factory library
If the download is
docker pull 192.168.18.184:10001/library/ccc