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