Since a few weeks I have a problem when using Docker build. Often, the build process hangs forever during the load metadata for [whatever image]
step.
I am running Docker Desktop on Windows 11 with WSL2 enabled. Sometimes a reboot helps me get rid of the error, but more often than not I am stuck with it. What I tried so far:
- Delete the config.json under .docker/
- Turn off VPN / Turn on VPN
- Manually set DNS in daemon.json
- Manually set DNS using reslov.conf in the docker-desktop WSL image
- Turn on / off various settings in .wslconfig
- Restarting Docker Desktop
- Restarting WSL using wsl --shutdown
- Reinstall Docker for Windows
None of these seem to help. I believe that the problems started once I upgraded from Windows 10 to Windows 11 but I am not sure about that. The problem is independent of the project I try to build and not exclusive to a subset of images. I noticed that there seem to be connected issues as well. As long as I have this problem, any existing container cannot connect to my MSSQL database that runs natively under windows 11.
When it does work, it continues to work as long as I keep the machine running. After a hibernation cycle, the problem reappears most of the time.
Since a few weeks I have a problem when using Docker build. Often, the build process hangs forever during the load metadata for [whatever image]
step.
I am running Docker Desktop on Windows 11 with WSL2 enabled. Sometimes a reboot helps me get rid of the error, but more often than not I am stuck with it. What I tried so far:
- Delete the config.json under .docker/
- Turn off VPN / Turn on VPN
- Manually set DNS in daemon.json
- Manually set DNS using reslov.conf in the docker-desktop WSL image
- Turn on / off various settings in .wslconfig
- Restarting Docker Desktop
- Restarting WSL using wsl --shutdown
- Reinstall Docker for Windows
None of these seem to help. I believe that the problems started once I upgraded from Windows 10 to Windows 11 but I am not sure about that. The problem is independent of the project I try to build and not exclusive to a subset of images. I noticed that there seem to be connected issues as well. As long as I have this problem, any existing container cannot connect to my MSSQL database that runs natively under windows 11.
When it does work, it continues to work as long as I keep the machine running. After a hibernation cycle, the problem reappears most of the time.
Share Improve this question edited Mar 3 at 14:42 Emanuel Oster asked Mar 3 at 14:35 Emanuel OsterEmanuel Oster 1,31610 silver badges21 bronze badges1 Answer
Reset to default 0Docker's cache might have something causing it which a restart and reinstall doesn't get rid of, searching online led me to this https://forums.docker/t/how-to-delete-cache/5753/5
Someone suggests to use docker builder prune
which removes build cache, so you can try this.
Here's a link to the documentation: https://docs.docker/reference/cli/docker/builder/prune/