Harbor简单安装

harbor-offline-installer-v2.3.2.tgz 解压到 /apps/harbor/

root@ubuntu20:/apps/harbor# cat harbor.yml |grep -v "#" |grep -v "^$"
hostname: 192.168.192.155
http:
  port: 80
harbor_admin_password: Harbor12345
database:
  password: root123
  max_idle_conns: 100
  max_open_conns: 900
data_volume: /data
trivy:
  ignore_unfixed: false
  skip_update: false
  insecure: false
jobservice:
  max_job_workers: 10
notification:
  webhook_job_max_retry: 10
chart:
  absolute_url: disabled
log:
  level: info
  local:
    rotate_count: 50
    rotate_size: 200M
    location: /var/log/harbor
_version: 2.3.0
proxy:
  http_proxy:
  https_proxy:
  no_proxy:
  components:
    - core
    - jobservice
    - trivy

  ./install.sh --with-trivy

root@ubuntu20:/etc/kubeasz/down# cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://x.mirror.aliyuncs.com"],
"insecure-registries":["192.168.192.155:80"]
}

root@ubuntu20:/etc/kubeasz/down# docker login 192.168.192.155:80
Authenticating with existing credentials...
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

 

posted @ 2021-11-28 20:14  gg888666  阅读(74)  评论(0)    收藏  举报