k8s-安装文档-07-harbor仓库安装配置

2023-06-01 00:00:00 K8S

harbor

> vm开源的镜像仓库

> https://vmware.github.io/harbor/cn/#overview


## 部署地址

#UI

内网:http://172.18.1.111
线上:http://10.0.1.147


#docker-compose.yaml位置

内网:/opt/harbor/docker-compose.yaml
线上:/data/harbor/docker-compose.yaml


## 安装及配置

# 安装参考

https://github.com/vmware/harbor/blob/master/docs/installation_guide.md


#harbor仓库空间清理

####官网链接地址

https://github.com/vmware/harbor/blob/master/docs/user_guide.md#deleting-repositories


####过程

docker-compose stop

docker run -it --name gc --rm --volumes-from registry vmware/registry:2.6.2-photon garbage-collect --dry-run /etc/registry/config.yml
docker run -it --name gc --rm --volumes-from registry vmware/registry:2.6.2-photon garbage-collect  /etc/registry/config.yml

docker-compose start


相关文章