when your OS is Windows10 or Windows 11 and use docker maybe has WSL error messages.
First, you can use "cmd" to check status:
and you can see the version is "2".
but also give us a message: no find WSL 2 core file.
So, the second, you need "wsl --update" command in your "cmd" window, and try again.