This also worked for me. For consistency, I’d also like to indicate that upon deleting this file and then starting Docker Desktop (for Windows; I am running Win10Education), it acted as if this was the first time I’d started Docker Desktop, including asking for permission to start as admin. I was only hit with this settings.json roadblock after I installed Docker Desktop 3.6.0 from… I think it was 3.4.0 but I really am not sure. If anyone knows how to find that, I’d add it to my post for future reference. Thanks @sanzoghenzo you rule!
(For clarity, my file was in
%appdata%\Docker\settings.json and not
%appdata%\Roaming\settings.json, but both files do exist on my system, and deleting the former solved my problem (latter inconclusive).
I would advise the sanzoghenzo approach against this issue if you are a regular docker/wsl2 user, because it looked like the ext4 filesystem for my wsl2 system was stored in one of the directories mentioned in schmidty’s post which would have gotten wiped out if I’d trusted those instructions. save yourself a headache.