我启用gitlab ce 10.1.4(omnibus)容器注册表 .

添加外部nginx conf .

得到https://git.XXX.com/web/repo/container_registry 500错误

在控制台:docker登录git.XXX.com:5005并输出:

警告:未能从守护程序获取默认注册表 endpoints (连接期间出错:获取http://%2F%2F . %2Fpipe%2Fdocker_engine / v1.27 / info:open //./pipe/docker_engine:系统找不到指定的文件 . 在Windows上的默认守护程序配置中,必须提升docker客户端以进行连接 . 此错误也可能表示docker守护程序未运行 . ) . 使用系统默认值:https://index.docker.io/v1/

在nginx / error.log中:

警告:适配器后设置了意外的中间件 . 法拉第1.0不支持此功能

在production.log中:

开始获取“/ web / repo / container_registry”for ip at 2017-11-21 20:35:50 0300 Processing by Projects :: Registry :: RepositoriesController #index as HTML参数:{“namespace_id”=>“web”, “project_id”=>“repo”}在33ms内完成500内部服务器错误(ActiveRecord:2.0ms)Faraday :: SSLError(SSL_connect返回= 1 errno = 0状态= SSLv2 / v3读取服务器问候A:未知协议):lib / container_registry / client.rb:19:在repository_tags的app / models / container_repository.rb中:36:inmanifest'app / models / container_repository.rb:41:在标签'app / models / container_repository.rb:53:inhas_tags?'app /controllers/projects/registry/repositories_controller.rb:48:在ensure_root_container_repository中的块(2个级别)!' app / controllers / projects / registry / repositories_controller.rb:47:intap'app / controllers / projects / registry / repositories_controller.rb:47:在ensure_root_container_repository中的块!' app / controllers / projects / registry / repositories_controller.rb:44:intap'app / controllers / projects / registry / repositories_controller.rb:44:in ensure_root_container_repository!' lib / gitlab / i18n.rb:47:inwith_locale'lib / gitlab / i18n.rb:53:with with_user_locale'app / controllers / application_controller.rb:337:inset_locale'lib / gitlab / middleware / multipart.rb:93:in调用'lib / gitlab / request_profiler / middleware.rb:14:incall'lib / gitlab / middleware / go.rb:17:in call'lib / gitlab / etag_caching / middleware.rb:11:incall'

外部nginx.conf:

上游gitlab-registry {server localhost:5000 fail_timeout = 0; } server {listen 5005 ssl http2; server_name git.XXX.com; ssl_certificate /etc/letsencrypt/live/git.XXX.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/git.XXX.com/privkey.pem; server_tokens off; client_max_body_size 0; chunked_transfer_encoding on; ssl_ciphers'ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA- AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:AES256-ssl_protocols TLSv1.2 TLSv1.1 TLSv1; ssl_prefer_server_ciphers on; ssl_session_cache内置:1000共享:SSL:10m; ssl_session_timeout 5m; access_log /var/log/gitlab/nginx/gitlab_registry_access.log; error_log /var/log/gitlab/nginx/gitlab_registry_error.log; location / {proxy_set_header Host $ http_host; #docker客户端所需的代理服务器proxy_set_header X-Real-IP $ remote_addr; #传递真实客户端的IP proxy_set_header X-Forwarded-For $ proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $ scheme; proxy_read_timeout 900; proxy_pass http:// gitlab-registry; }}

ruby 2.4.1p111(2017-03-22修订版58053)[x86_64-linux]

宝石清单:

...法拉第(0.13.1,0.12.2)faraday_middleware(0.12.2,0.11.0.1)faraday_middleware-multi_json(0.0.6)...

请帮帮我!