docker file error gzip: stdin: invalid compressed data--crc error












0















I'm learning how to used Docker and gcp using this quickstart, but have an error I can't fix. There are two files in the folder, Dockerfile.txt and quickstart.sh.



The Dockerfile has been created using Notepad++ and saved as a Dockerfile.txt file. When I run the command



gcloud builds submit --tag gcr.io/[PROJECT_ID]/quickstart-image .



I get an error



gzip: stdin: invalid compressed data--crc error
gzip: stdin: invalid compressed data--length error
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR
ERROR: fetching gcs source: unpacking tarball: exit status 2


I think this is caused by the Dockerfile format, should it be a bash file? I've recreated the file several times to make sure its not corrupted.



These are the files in the directory:



hugh@Hugh_Laptop:/mnt/d/temp$ ls -l
total 0
-rwxrwxrwx 1 hugh hugh 55 Nov 21 15:05 Dockerfile.bash
-rwxrwxrwx 1 hugh hugh 51 Nov 21 13:38 quickstart.sh









share|improve this question

























  • What files are in the directory . (current directory)? Execute `ls -l' and add the output to your question.

    – John Hanley
    Nov 21 '18 at 4:44













  • What program did you create your text files with?

    – John Hanley
    Nov 21 '18 at 4:47











  • both files created with Notepad++

    – Zeus
    Nov 21 '18 at 4:48











  • What selection in Notepad++ for "Save as type" when you saved the files?

    – John Hanley
    Nov 21 '18 at 4:51











  • I saved it as a normal .txt file

    – Zeus
    Nov 21 '18 at 5:04
















0















I'm learning how to used Docker and gcp using this quickstart, but have an error I can't fix. There are two files in the folder, Dockerfile.txt and quickstart.sh.



The Dockerfile has been created using Notepad++ and saved as a Dockerfile.txt file. When I run the command



gcloud builds submit --tag gcr.io/[PROJECT_ID]/quickstart-image .



I get an error



gzip: stdin: invalid compressed data--crc error
gzip: stdin: invalid compressed data--length error
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR
ERROR: fetching gcs source: unpacking tarball: exit status 2


I think this is caused by the Dockerfile format, should it be a bash file? I've recreated the file several times to make sure its not corrupted.



These are the files in the directory:



hugh@Hugh_Laptop:/mnt/d/temp$ ls -l
total 0
-rwxrwxrwx 1 hugh hugh 55 Nov 21 15:05 Dockerfile.bash
-rwxrwxrwx 1 hugh hugh 51 Nov 21 13:38 quickstart.sh









share|improve this question

























  • What files are in the directory . (current directory)? Execute `ls -l' and add the output to your question.

    – John Hanley
    Nov 21 '18 at 4:44













  • What program did you create your text files with?

    – John Hanley
    Nov 21 '18 at 4:47











  • both files created with Notepad++

    – Zeus
    Nov 21 '18 at 4:48











  • What selection in Notepad++ for "Save as type" when you saved the files?

    – John Hanley
    Nov 21 '18 at 4:51











  • I saved it as a normal .txt file

    – Zeus
    Nov 21 '18 at 5:04














0












0








0








I'm learning how to used Docker and gcp using this quickstart, but have an error I can't fix. There are two files in the folder, Dockerfile.txt and quickstart.sh.



The Dockerfile has been created using Notepad++ and saved as a Dockerfile.txt file. When I run the command



gcloud builds submit --tag gcr.io/[PROJECT_ID]/quickstart-image .



I get an error



gzip: stdin: invalid compressed data--crc error
gzip: stdin: invalid compressed data--length error
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR
ERROR: fetching gcs source: unpacking tarball: exit status 2


I think this is caused by the Dockerfile format, should it be a bash file? I've recreated the file several times to make sure its not corrupted.



These are the files in the directory:



hugh@Hugh_Laptop:/mnt/d/temp$ ls -l
total 0
-rwxrwxrwx 1 hugh hugh 55 Nov 21 15:05 Dockerfile.bash
-rwxrwxrwx 1 hugh hugh 51 Nov 21 13:38 quickstart.sh









share|improve this question
















I'm learning how to used Docker and gcp using this quickstart, but have an error I can't fix. There are two files in the folder, Dockerfile.txt and quickstart.sh.



The Dockerfile has been created using Notepad++ and saved as a Dockerfile.txt file. When I run the command



gcloud builds submit --tag gcr.io/[PROJECT_ID]/quickstart-image .



I get an error



gzip: stdin: invalid compressed data--crc error
gzip: stdin: invalid compressed data--length error
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR
ERROR: fetching gcs source: unpacking tarball: exit status 2


I think this is caused by the Dockerfile format, should it be a bash file? I've recreated the file several times to make sure its not corrupted.



These are the files in the directory:



hugh@Hugh_Laptop:/mnt/d/temp$ ls -l
total 0
-rwxrwxrwx 1 hugh hugh 55 Nov 21 15:05 Dockerfile.bash
-rwxrwxrwx 1 hugh hugh 51 Nov 21 13:38 quickstart.sh






docker google-cloud-platform dockerfile google-cloud-build






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 8:04









Maxim

1,533210




1,533210










asked Nov 21 '18 at 4:38









ZeusZeus

4852725




4852725













  • What files are in the directory . (current directory)? Execute `ls -l' and add the output to your question.

    – John Hanley
    Nov 21 '18 at 4:44













  • What program did you create your text files with?

    – John Hanley
    Nov 21 '18 at 4:47











  • both files created with Notepad++

    – Zeus
    Nov 21 '18 at 4:48











  • What selection in Notepad++ for "Save as type" when you saved the files?

    – John Hanley
    Nov 21 '18 at 4:51











  • I saved it as a normal .txt file

    – Zeus
    Nov 21 '18 at 5:04



















  • What files are in the directory . (current directory)? Execute `ls -l' and add the output to your question.

    – John Hanley
    Nov 21 '18 at 4:44













  • What program did you create your text files with?

    – John Hanley
    Nov 21 '18 at 4:47











  • both files created with Notepad++

    – Zeus
    Nov 21 '18 at 4:48











  • What selection in Notepad++ for "Save as type" when you saved the files?

    – John Hanley
    Nov 21 '18 at 4:51











  • I saved it as a normal .txt file

    – Zeus
    Nov 21 '18 at 5:04

















What files are in the directory . (current directory)? Execute `ls -l' and add the output to your question.

– John Hanley
Nov 21 '18 at 4:44







What files are in the directory . (current directory)? Execute `ls -l' and add the output to your question.

– John Hanley
Nov 21 '18 at 4:44















What program did you create your text files with?

– John Hanley
Nov 21 '18 at 4:47





What program did you create your text files with?

– John Hanley
Nov 21 '18 at 4:47













both files created with Notepad++

– Zeus
Nov 21 '18 at 4:48





both files created with Notepad++

– Zeus
Nov 21 '18 at 4:48













What selection in Notepad++ for "Save as type" when you saved the files?

– John Hanley
Nov 21 '18 at 4:51





What selection in Notepad++ for "Save as type" when you saved the files?

– John Hanley
Nov 21 '18 at 4:51













I saved it as a normal .txt file

– Zeus
Nov 21 '18 at 5:04





I saved it as a normal .txt file

– Zeus
Nov 21 '18 at 5:04












1 Answer
1






active

oldest

votes


















0














My guess is that the extension of the Dockerfile is the cause of the issue.



I suggest to create a new Dockerfile without the any extension.






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',
    autoActivateHeartbeat: false,
    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%2f53405349%2fdocker-file-error-gzip-stdin-invalid-compressed-data-crc-error%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









    0














    My guess is that the extension of the Dockerfile is the cause of the issue.



    I suggest to create a new Dockerfile without the any extension.






    share|improve this answer






























      0














      My guess is that the extension of the Dockerfile is the cause of the issue.



      I suggest to create a new Dockerfile without the any extension.






      share|improve this answer




























        0












        0








        0







        My guess is that the extension of the Dockerfile is the cause of the issue.



        I suggest to create a new Dockerfile without the any extension.






        share|improve this answer















        My guess is that the extension of the Dockerfile is the cause of the issue.



        I suggest to create a new Dockerfile without the any extension.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 15 at 14:56









        Guillermo Cacheda

        1,496517




        1,496517










        answered Feb 15 at 11:45









        Adrian nieto maciasAdrian nieto macias

        624




        624
































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53405349%2fdocker-file-error-gzip-stdin-invalid-compressed-data-crc-error%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

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents