Open Code-Horror opened 5 days ago
Looks like you either got especially unlucky and caught two unrelated hosts temporarily down at once, or you experienced a local network issue, hopefully just temporary. If you'd like to investigate further, start a Bash container on the failed stage. I don't know how to find the image ID with BuildKit — appears to be currently impossible due to BuildKit design flaws — but the "legacy" builder (set DOCKER_BUILDKIT=0) prints the image ID just before the failure. Start the container like so:
$ docker run --rm -it IMAGEID
Then examine the two bad files. They're probably HTML and contain an error message from the server, or perhaps a message from some meddling proxy. It might point you to the problem.
If you'd like to try your luck without investigating, delete the layer with the bad download or build with cache disabled (--no-cache). Then hopefully it works on a second attempt. When it's past the SHA-256 check you're in the clear, and internet access is no longer required.
Another option for investigating is to download the two bad files in your browser, on the same network, and see what happens. URLs are near the top of Dockerfile.
(Building via cmd.exe has no impact on this issue, so feel free to keep using it. I still appreciate that you've shared such details.)
Getting the following error when attempting to build on Windows 10 running from
cmd.exe
.