Harbor单机部署

一、官网下载安装包

docker-compose-linux-x86_64(docker编排工具)

https://objects.githubusercontent.com/github-production-release-asset-2e65be/15045751/3102658c-e3b9-4802-8c67-0fde914caa5c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240306%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240306T154500Z&X-Amz-Expires=300&X-Amz-Signature=3674bda501a6dc88360dffc1bf53e24e7a3f06193560ae353a249bc687c5ba1f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=15045751&response-content-disposition=attachment%3B%20filename%3Ddocker-compose-linux-x86_64&response-content-type=application%2Foctet-streamicon-default.png?t=N7T8https://objects.githubusercontent.com/github-production-release-asset-2e65be/15045751/3102658c-e3b9-4802-8c67-0fde914caa5c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240306%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240306T154500Z&X-Amz-Expires=300&X-Amz-Signature=3674bda501a6dc88360dffc1bf53e24e7a3f06193560ae353a249bc687c5ba1f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=15045751&response-content-disposition=attachment%3B%20filename%3Ddocker-compose-linux-x86_64&response-content-type=application%2Foctet-streamharbor-offline-installer-v2.9.3(harbor安装包)

https://objects.githubusercontent.com/github-production-release-asset-2e65be/50613991/3b3a7bd9-e7b3-4996-bc46-c87015b489ba?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240306%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240306T154741Z&X-Amz-Expires=300&X-Amz-Signature=ca85d43a1dbbbaab0e71f9bba9a5a87afaaefce3e74ac820d2e981d7bfac5899&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=50613991&response-content-disposition=attachment%3B%20filename%3Dharbor-offline-installer-v2.9.3-rc2.tgz&response-content-type=application%2Foctet-streamicon-default.png?t=N7T8https://objects.githubusercontent.com/github-production-release-asset-2e65be/50613991/3b3a7bd9-e7b3-4996-bc46-c87015b489ba?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240306%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240306T154741Z&X-Amz-Expires=300&X-Amz-Signature=ca85d43a1dbbbaab0e71f9bba9a5a87afaaefce3e74ac820d2e981d7bfac5899&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=50613991&response-content-disposition=attachment%3B%20filename%3Dharbor-offline-installer-v2.9.3-rc2.tgz&response-content-type=application%2Foctet-stream

二、安装并配置harbor

yum install docker-common.x86_64
chmod +x /usr/local/bin/docker-compose 
docker-compose version
tar xf harbor-offline-installer-v2.9.3-rc2.tgz -C /usr/local
cd /usr/local/harbor/
cp harbor.yml.tmpl harbor.yml
vim harbor.yml
./install.sh 


 三、浏览器登陆

 

 四、上传镜像

vim /etc/docker/daemon.json
"insecure-registries":["http://node1.harbor.com"]

systemctl daemon-reload 
systemctl restart docker.service

docker login -u haha node1.harbor.com
docker tag ubuntu:18.04 node1.harbor.com/cdcas/ubuntu:18.04
docker push node1.harbor.com/cdcas/ubuntu:18.04

 五、在harbor上面查看

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值