Gitlab Registry Docker push fails with EOF











up vote
0
down vote

favorite












So my problem is when ever i try to push a docker image to my private registry hosted/run on gitlab the push will fail with the message EOF.



Besides connection through an reverse proxy a have a standard gitlab instance in Version 11.4.7 on Ubuntu 18.04.



docker push registry.example.com:4567/example/project



The push refers to repository [registry.example.com]
b927422b59f7: Preparing
1c55a05eac35: Preparing
8152e12d6303: Preparing
4df94c231950: Preparing
c8f2b48b3ca4: Preparing
7bdc16d52fc6: Layer already exists
0fff85bdf758: Layer already exists
70cda07214eb: Layer already exists
c87a43e8244d: Layer already exists
a13e2f0a9f03: Layer already exists
d21349b545ee: Layer already exists
48dd4e2003bc: Layer already exists
94fb2e0cad4e: Layer already exists
c368c3ebd80b: Layer already exists
004ac8bfdd61: Layer already exists
174adb00500f: Layer already exists
cbc7d59da4b4: Layer already exists
22133acd47a9: Pushing [==================================================>] 50.48MB
7641974a4ba0: Layer already exists
314e9c11d1e2: Layer already exists
7630224de148: Layer already exists
7ecb4828cd35: Pushing [==================================================>] 80.18MB/80.18MB
3d26624ea56e: Layer already exists
2887f86eb343: Pushing [==================================================>] 13.47MB/13.47MB
a4ace4ed0385: Layer already exists
fd29e0f8792a: Retrying in 5 seconds
687dad24bb36: Pushing [==================================================>] 3.584kB
237472299760: Retrying in 7 seconds
EOF



reverse proxy config



server {
listen 4567 ssl;
access_log /var/log/nginx/registry_acces.log;
error_log /var/log/nginx/registry_error.log;
server_name gitlab.example.com
client_max_body_size 0;
proxy_max_temp_file_size 0;
ssl_certificate /etc/letsencrypt/live/registry.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/registry.example.com/privkey.pem;
root /www/;

location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto http;

proxy_cache off;
proxy_buffering off;
proxy_request_buffering off;
proxy_http_version 1.1;
proxy_pass http://10.1.1.15:4567;
}

error_page 497 301 =307 https://$host:$server_port$request_uri;

}









share|improve this question




























    up vote
    0
    down vote

    favorite












    So my problem is when ever i try to push a docker image to my private registry hosted/run on gitlab the push will fail with the message EOF.



    Besides connection through an reverse proxy a have a standard gitlab instance in Version 11.4.7 on Ubuntu 18.04.



    docker push registry.example.com:4567/example/project



    The push refers to repository [registry.example.com]
    b927422b59f7: Preparing
    1c55a05eac35: Preparing
    8152e12d6303: Preparing
    4df94c231950: Preparing
    c8f2b48b3ca4: Preparing
    7bdc16d52fc6: Layer already exists
    0fff85bdf758: Layer already exists
    70cda07214eb: Layer already exists
    c87a43e8244d: Layer already exists
    a13e2f0a9f03: Layer already exists
    d21349b545ee: Layer already exists
    48dd4e2003bc: Layer already exists
    94fb2e0cad4e: Layer already exists
    c368c3ebd80b: Layer already exists
    004ac8bfdd61: Layer already exists
    174adb00500f: Layer already exists
    cbc7d59da4b4: Layer already exists
    22133acd47a9: Pushing [==================================================>] 50.48MB
    7641974a4ba0: Layer already exists
    314e9c11d1e2: Layer already exists
    7630224de148: Layer already exists
    7ecb4828cd35: Pushing [==================================================>] 80.18MB/80.18MB
    3d26624ea56e: Layer already exists
    2887f86eb343: Pushing [==================================================>] 13.47MB/13.47MB
    a4ace4ed0385: Layer already exists
    fd29e0f8792a: Retrying in 5 seconds
    687dad24bb36: Pushing [==================================================>] 3.584kB
    237472299760: Retrying in 7 seconds
    EOF



    reverse proxy config



    server {
    listen 4567 ssl;
    access_log /var/log/nginx/registry_acces.log;
    error_log /var/log/nginx/registry_error.log;
    server_name gitlab.example.com
    client_max_body_size 0;
    proxy_max_temp_file_size 0;
    ssl_certificate /etc/letsencrypt/live/registry.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/registry.example.com/privkey.pem;
    root /www/;

    location / {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto http;

    proxy_cache off;
    proxy_buffering off;
    proxy_request_buffering off;
    proxy_http_version 1.1;
    proxy_pass http://10.1.1.15:4567;
    }

    error_page 497 301 =307 https://$host:$server_port$request_uri;

    }









    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      So my problem is when ever i try to push a docker image to my private registry hosted/run on gitlab the push will fail with the message EOF.



      Besides connection through an reverse proxy a have a standard gitlab instance in Version 11.4.7 on Ubuntu 18.04.



      docker push registry.example.com:4567/example/project



      The push refers to repository [registry.example.com]
      b927422b59f7: Preparing
      1c55a05eac35: Preparing
      8152e12d6303: Preparing
      4df94c231950: Preparing
      c8f2b48b3ca4: Preparing
      7bdc16d52fc6: Layer already exists
      0fff85bdf758: Layer already exists
      70cda07214eb: Layer already exists
      c87a43e8244d: Layer already exists
      a13e2f0a9f03: Layer already exists
      d21349b545ee: Layer already exists
      48dd4e2003bc: Layer already exists
      94fb2e0cad4e: Layer already exists
      c368c3ebd80b: Layer already exists
      004ac8bfdd61: Layer already exists
      174adb00500f: Layer already exists
      cbc7d59da4b4: Layer already exists
      22133acd47a9: Pushing [==================================================>] 50.48MB
      7641974a4ba0: Layer already exists
      314e9c11d1e2: Layer already exists
      7630224de148: Layer already exists
      7ecb4828cd35: Pushing [==================================================>] 80.18MB/80.18MB
      3d26624ea56e: Layer already exists
      2887f86eb343: Pushing [==================================================>] 13.47MB/13.47MB
      a4ace4ed0385: Layer already exists
      fd29e0f8792a: Retrying in 5 seconds
      687dad24bb36: Pushing [==================================================>] 3.584kB
      237472299760: Retrying in 7 seconds
      EOF



      reverse proxy config



      server {
      listen 4567 ssl;
      access_log /var/log/nginx/registry_acces.log;
      error_log /var/log/nginx/registry_error.log;
      server_name gitlab.example.com
      client_max_body_size 0;
      proxy_max_temp_file_size 0;
      ssl_certificate /etc/letsencrypt/live/registry.example.com/fullchain.pem;
      ssl_certificate_key /etc/letsencrypt/live/registry.example.com/privkey.pem;
      root /www/;

      location / {
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto http;

      proxy_cache off;
      proxy_buffering off;
      proxy_request_buffering off;
      proxy_http_version 1.1;
      proxy_pass http://10.1.1.15:4567;
      }

      error_page 497 301 =307 https://$host:$server_port$request_uri;

      }









      share|improve this question















      So my problem is when ever i try to push a docker image to my private registry hosted/run on gitlab the push will fail with the message EOF.



      Besides connection through an reverse proxy a have a standard gitlab instance in Version 11.4.7 on Ubuntu 18.04.



      docker push registry.example.com:4567/example/project



      The push refers to repository [registry.example.com]
      b927422b59f7: Preparing
      1c55a05eac35: Preparing
      8152e12d6303: Preparing
      4df94c231950: Preparing
      c8f2b48b3ca4: Preparing
      7bdc16d52fc6: Layer already exists
      0fff85bdf758: Layer already exists
      70cda07214eb: Layer already exists
      c87a43e8244d: Layer already exists
      a13e2f0a9f03: Layer already exists
      d21349b545ee: Layer already exists
      48dd4e2003bc: Layer already exists
      94fb2e0cad4e: Layer already exists
      c368c3ebd80b: Layer already exists
      004ac8bfdd61: Layer already exists
      174adb00500f: Layer already exists
      cbc7d59da4b4: Layer already exists
      22133acd47a9: Pushing [==================================================>] 50.48MB
      7641974a4ba0: Layer already exists
      314e9c11d1e2: Layer already exists
      7630224de148: Layer already exists
      7ecb4828cd35: Pushing [==================================================>] 80.18MB/80.18MB
      3d26624ea56e: Layer already exists
      2887f86eb343: Pushing [==================================================>] 13.47MB/13.47MB
      a4ace4ed0385: Layer already exists
      fd29e0f8792a: Retrying in 5 seconds
      687dad24bb36: Pushing [==================================================>] 3.584kB
      237472299760: Retrying in 7 seconds
      EOF



      reverse proxy config



      server {
      listen 4567 ssl;
      access_log /var/log/nginx/registry_acces.log;
      error_log /var/log/nginx/registry_error.log;
      server_name gitlab.example.com
      client_max_body_size 0;
      proxy_max_temp_file_size 0;
      ssl_certificate /etc/letsencrypt/live/registry.example.com/fullchain.pem;
      ssl_certificate_key /etc/letsencrypt/live/registry.example.com/privkey.pem;
      root /www/;

      location / {
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto http;

      proxy_cache off;
      proxy_buffering off;
      proxy_request_buffering off;
      proxy_http_version 1.1;
      proxy_pass http://10.1.1.15:4567;
      }

      error_page 497 301 =307 https://$host:$server_port$request_uri;

      }






      docker gitlab docker-registry






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 at 11:16

























      asked Nov 21 at 20:21









      ljbergmann

      6615




      6615
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Well i screwed the reverse proxy config.



          With this config it is working.



          server {
          listen *:4567;

          server_name registry.example.com;

          server_tokens off;

          access_log /var/log/nginx/registry_acces.log;
          error_log /var/log/nginx/registry_error.log;

          ssl_certificate /etc/letsencrypt/live/registry.example.com/fullchain.pem;
          ssl_certificate_key /etc/letsencrypt/registry.example.com/privkey.pem;
          root /www/;

          client_max_body_size 0;
          chunked_transfer_encoding on;

          ## Real IP Module Config
          ## http://nginx.org/en/docs/http/ngx_http_realip_module.htmly
          location / {

          proxy_set_header Host $http_host;
          proxy_set_header X-Real-IP $remote_addr;
          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://10.1.1.15:4567;
          }


          }





          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53419924%2fgitlab-registry-docker-push-fails-with-eof%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Well i screwed the reverse proxy config.



            With this config it is working.



            server {
            listen *:4567;

            server_name registry.example.com;

            server_tokens off;

            access_log /var/log/nginx/registry_acces.log;
            error_log /var/log/nginx/registry_error.log;

            ssl_certificate /etc/letsencrypt/live/registry.example.com/fullchain.pem;
            ssl_certificate_key /etc/letsencrypt/registry.example.com/privkey.pem;
            root /www/;

            client_max_body_size 0;
            chunked_transfer_encoding on;

            ## Real IP Module Config
            ## http://nginx.org/en/docs/http/ngx_http_realip_module.htmly
            location / {

            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            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://10.1.1.15:4567;
            }


            }





            share|improve this answer

























              up vote
              0
              down vote













              Well i screwed the reverse proxy config.



              With this config it is working.



              server {
              listen *:4567;

              server_name registry.example.com;

              server_tokens off;

              access_log /var/log/nginx/registry_acces.log;
              error_log /var/log/nginx/registry_error.log;

              ssl_certificate /etc/letsencrypt/live/registry.example.com/fullchain.pem;
              ssl_certificate_key /etc/letsencrypt/registry.example.com/privkey.pem;
              root /www/;

              client_max_body_size 0;
              chunked_transfer_encoding on;

              ## Real IP Module Config
              ## http://nginx.org/en/docs/http/ngx_http_realip_module.htmly
              location / {

              proxy_set_header Host $http_host;
              proxy_set_header X-Real-IP $remote_addr;
              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://10.1.1.15:4567;
              }


              }





              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Well i screwed the reverse proxy config.



                With this config it is working.



                server {
                listen *:4567;

                server_name registry.example.com;

                server_tokens off;

                access_log /var/log/nginx/registry_acces.log;
                error_log /var/log/nginx/registry_error.log;

                ssl_certificate /etc/letsencrypt/live/registry.example.com/fullchain.pem;
                ssl_certificate_key /etc/letsencrypt/registry.example.com/privkey.pem;
                root /www/;

                client_max_body_size 0;
                chunked_transfer_encoding on;

                ## Real IP Module Config
                ## http://nginx.org/en/docs/http/ngx_http_realip_module.htmly
                location / {

                proxy_set_header Host $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                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://10.1.1.15:4567;
                }


                }





                share|improve this answer












                Well i screwed the reverse proxy config.



                With this config it is working.



                server {
                listen *:4567;

                server_name registry.example.com;

                server_tokens off;

                access_log /var/log/nginx/registry_acces.log;
                error_log /var/log/nginx/registry_error.log;

                ssl_certificate /etc/letsencrypt/live/registry.example.com/fullchain.pem;
                ssl_certificate_key /etc/letsencrypt/registry.example.com/privkey.pem;
                root /www/;

                client_max_body_size 0;
                chunked_transfer_encoding on;

                ## Real IP Module Config
                ## http://nginx.org/en/docs/http/ngx_http_realip_module.htmly
                location / {

                proxy_set_header Host $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                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://10.1.1.15:4567;
                }


                }






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 22 at 14:53









                ljbergmann

                6615




                6615






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53419924%2fgitlab-registry-docker-push-fails-with-eof%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

                    Calculate evaluation metrics using cross_val_predict sklearn

                    Insert data from modal to MySQL (multiple modal on website)