Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker Desktop for Windows always getting stuck on extracting

I am facing a problem with Docker Desktop for Windows where I am pulling the docker image microsoft/windowsservercore and it contains 2 layers, one around 1.16 GB and the other one around 4.07 GB. The problem I am facing is that the 4.07GB layer always gets stuck at extracting. I have tried it multiple times in last 2 days. Download easily takes around 40 minutes and extraction takes much longer, getting stuck in the middle for minutes without any progress then towards the end, it just gets stuck completely and does not proceed even if I wait for half an hour or whatever. What might be the issue, how can I debug it? Can it be due to system configuration or due to the amount of resources allocated to docker? Is it possible to allocate more resources to docker? One thing I have observed is that the PC tends to get a lot slower once the extraction gets stuck. However, when I check task manager, the CPU and memory utilization is not beyond 50%. I have 8GB of DDR3 RAM using an i5 processor running Windows 10.

PS C:\Users\mandeep\ringba\ringba-jenkins-setup-windows\windows-java> docker build -t windows-java:jre1.8.0_91 .
Sending build context to Docker daemon 2.048 kB
Step 1/5 : FROM microsoft/windowsservercore
latest: Pulling from microsoft/windowsservercore
3889bb8d808b: Extracting [=================================================> ] 4.027 GB/4.07 GB
6d4d50238ed1: Download complete
like image 673
Mandeep Singh Avatar asked May 02 '17 08:05

Mandeep Singh


People also ask

How much RAM do I need for Docker desktop?

Adjusting Docker Resources After installing Docker, you must increase the available resources so that Docker is able to launch the AnzoGraph image. AnzoGraph requires at least 10 GB of available disk space and 8 GiB of available RAM to start the database.

Why is Docker not working Windows 10?

If you do not run a 64-bit version of Windows Windows 10 Pro, Enterprise, or Education; 1511 November update, Build 10586 or later, you cannot run Docker for Windows. You can install Docker Toolbox if you have a 64-bit version of Windows 7 or later. Alternately, you do have the option to upgrade.

Why does my Docker container keep stopping?

The main process inside the container has ended successfully: This is the most common reason for a Docker container to stop! When the process running inside your container ends, the container will exit. Here are a couple of examples: You run a container, which runs a shell script to perform some tasks.

Is Docker desktop no longer free?

Docker Desktop remains free for small businesses (fewer than 250 employees AND less than $10 million in annual revenue), personal use, education, and non-commercial open source projects. There is a grace period until January 31, 2022, for those that require a paid subscription to use Docker Desktop.


4 Answers

I had the same problem and came across this issue Docker can hang indefinitely waiting for a nonexistant process to pull an image. on the moby repo.

The suggested workaround is:

Restarting docker daemon solves the issue

It did the trick for me too.

like image 120
Justin Lessard Avatar answered Oct 22 '22 23:10

Justin Lessard


Restarted Docker Desktop. Now working fine..

enter image description here

like image 23
Vineesh TP Avatar answered Oct 22 '22 22:10

Vineesh TP


On Windows, check you are downloading an image that matches the current docker for windows container type. You may need to switch to using linux containers or vice-versa.

Switching from Windows to Linux containers fixed this issue for me when trying to pull microsoft/dotnet:2.2-aspnetcore-runtime.

like image 2
Mr. Bungle Avatar answered Oct 22 '22 22:10

Mr. Bungle


I also had the same issue.Restarted my machine and then Docker Desktop.Worked on Day 2.

like image 1
sri anjana Vadevoo Avatar answered Oct 23 '22 00:10

sri anjana Vadevoo