harbor
1.安装docker
curl -sfL https://get.rainbond.com/install_docker | bash
2.安装docker-compose
yum install -y docker-compose
或许直接下载二进制文件👉二进制文件下载地址
3.安装harbor
在线离线包下载
选一个喜欢的右击复制链接下载地址
wget https://gh.inative.io/https://github.com/goharbor/harbor/releases/download/v2.8.4/harbor-online-installer-v2.8.4.tgz
tar -xf
cd harbor
cp harbor.yml.tmpl harbor.yml
vim harbor.yml
hostname: 自己的ip或者域名
#https:
# https port for harbor, default is 443
#port: 443
# The path of cert and key files for nginx
#certificate: /your/certificate/path
#private_key: /your/private/key/path
./prepare
./install.sh
docker-compose ps
4.访问
用户名默认admin
密码Harbor12345
registry
1.添加私有镜像仓库地址
如果需要域名,注意做hosts解析
vim /etc/docker/daemon.json
{
......
"insecure-registries": ["192.168.110.10:5000","域名:5000"],
"registry-mirrors": ["https://07s6n5p5.mirror.aliyuncs.com"]
}
2.重启docker
systemctl daemon-reload
systemctl restart docker
3.运行registry
docker run -itd -v /data/registry:/var/lib/registry -p 5000:5000 --restart=always --name registry registry:latest
docker-ui
docker pull docker.rainbond.cc/uifd/ui-for-docker
docker run -it -d --name docker-ui -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock docker.rainbond.cc/uifd/ui-for-docker:latest