Инструменты пользователя

Инструменты сайта


how-to:harbor

Содержание

Harbor

Реестр для Docker контейнеров

Nginx

harbor.conf

harbor.conf

server {
  listen 443 ssl;
  server_name registry.domain.com;

  client_max_body_size 0;
  chunked_transfer_encoding on;
  proxy_buffering off;
  proxy_request_buffering off;
  proxy_http_version 1.1;

  location / {
    proxy_set_header Host                $http_host;
    proxy_set_header X-Real-IP           $remote_addr;
    proxy_set_header X-Forwarded-Ssl     on;
    proxy_set_header X-Forwarded-For     $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto   $scheme;

    proxy_pass http://192.168.88.211:8080;
  }

  ssl_protocols	SSLv3 TLSv1.2 TLSv1.3;
  ssl_certificate	/ssl/domain.com.crt;
  ssl_certificate_key	/ssl/domain.com.key;
  ssl_dhparam		/ssl/dhparam.pem;
  #add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; #hsts
}


Проблемы

unknown blob

Решение: Добавить relativeurls: true в config/registry/config.yml:

http:
  relativeurls: true

https://github.com/goharbor/harbor/issues/12135

Не редактируется auth_mode

Решение: https://github.com/goharbor/harbor/wiki/harbor-faqs#authentication

[ERROR] [/registryctl/config/config.go:63]: failed to load storage driver, err:open : no such file or directory

Решение: Добавить в config/registryctl/config.yml:

registry_config: "/etc/registry/config.yml"

https://github.com/bitnami/bitnami-docker-harbor-registryctl/issues/1

Ссылки

how-to/harbor.txt · Последнее изменение: 127.0.0.1