I upgraded my docker to 2.5.0.1 in windows after upgrading I lost all containers and images Is there any way to recover them? Why they lost?
You aren't alone. This seems to be a common occurrence with Docker. A very quick search reveals the following, which may be helpful:
This happened to me as well. I haven't used docker in several months, but I had several images locally. I went to use it today, and saw the same thing - all but one of my images in Linux, and one in Windows, are gone. I used to have nothing but good things to say about docker, but this is a cause for concern.
Update
I use Docker for Windows. I can find the original images if I modify Docker to use the legacy Hyper-V backend, rather than the WSL 2 based engine.
I found this setting after the OP mentioned disabling WSL completely on their system. The question now becomes how do we convert these images so that they are supported by the WSL 2 engine?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With