Simple question: After using Docker for about a week, my docker build
command gets bogged down and hangs (before anything executes) for about a minute. After staying in this hanging state, it will execute the docker build
command with no issues at all and at at the expected speed.
Other Docker commands (like docker run
) do not suffer from this "hanging" issue.
Docker Installation info:
Version 18.06.1-ce-win73
Channel: stable
Things I have tried:
docker system prune
- This does clear up space, but doesn't speed up my docker build
commandDoes anyone else suffer from this issue?
Here was the the issue:
The very first line of my Dockerfile (the FROM
command) was failing. The "hanging" was caused by a timeout during the attempt to download the base image. I was attempting to download the base image from a location that I needed to set a proxy on my machine for.
So I was mistaken in my original post: The Docker build
command wasn't running as expected. It was failing to download the base image due to a missing proxy setting.