镜像管理
删除镜像:
1、通过web界面管理
2、命令行清理空间
cd harbor
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
客户端对镜像操作
1、配置hosts解析:
echo "192.168.116.32 registry.iseeyou.cn " >>/etc/hosts
2、修改:/etc/docker/daemon.json
{
"insecure-registries":["registry.iseeyou.cn"]
}
仓库配置
3、登录:
[root@gitlab ~]#
docker login registry.iseeyou.cn
Username: user
Password: User12345
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper