Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker Failed to Initialize on Windows

Here, I have problem regarding pulling docker-dev in docker image for making my development environment but when I tried to pull docker-dev. I got the error like docker manifest not found. Can anyone help me out with this error...plz

before this I want to know about the docker failed to initialize error which i'm having right now...

the error is like, enter image description here

I tried so many things like re-install the docker desktop or WSL updates, but didn't worked.

And error in the command be like... enter image description here So if someone can help me out with this....plz help me out

like image 472
Ayush Avatar asked Jun 23 '21 08:06

Ayush


People also ask

Why is Docker not working Windows 10?

Operating System. 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.

Is Docker compatible with Windows 11?

You can install Docker on Windows 10 or 11 Professional and Enterprise editions by using the following steps. Download and install Docker Desktop and create a Docker account if you don't already have one.

How do I start Docker daemon on Windows?

To start Docker in daemon mode, choose Application > Start "Docker Daemon". The state should transition to "Running" after a few seconds and Docker Daemon should be accessible over the remote bridge. That's it! Next time your computer boots, Docker Daemon will start up immediately, before anyone logs on.


Video Answer


3 Answers

Got the same issue and fixed it by deleting %appdata%\Docker as mentioned by Github User "tocklime"

(Original Source : https://github.com/docker/for-win/issues/3088) enter image description here

like image 72
tmBlackCape Avatar answered Oct 16 '22 14:10

tmBlackCape


My solution: delete %appdata%\Docker\settings.json and let Docker to create a new one.

Take a backup of the file for the next time it gets broken.

<tl;dr>

I face this issue almost every month and I hope this will get fixed definitely.

Following tmBlackCape answer, I checked the %appdata%\Docker directory and found settings.json damaged (editor tells it's a binary file and of course it shouldn't).

I deleted the file and Docker Service (still running) created a new one with default values. If the service isn't running, just launch it again.

You could need to change settings (via GUI, as recommended) to catch your needs.

I made a backup copy of my custom settings.json so next time I can replace the broken one without losing custom configuration.

like image 21
nessunluogo Avatar answered Oct 16 '22 14:10

nessunluogo


Go to the directory C:\Users-------\AppData\Roaming\Docker and delete the file settings.json . Docker takes care of rewriting it at startup.

This manipulation solved the problem for me !

like image 15
IDIR Avatar answered Oct 16 '22 13:10

IDIR