this gzip call is problematic  because it removes the gz  suffix from the image filename therefore  when you run stack sh a second time download image will not detect that the image was already downloaded  because it checks for the filename with the  gz  suffix  which was cut off by the gzip call and download it again  then  gzip will try to decompress this new file  which causes a conflict with the existing file 