I found the answer from this link Since I'm using wsl2 ubuntu
I navigated to the Ubuntu terminal using the following command
ibunhabibu@DESKTOP-RG3E4I0:/mnt/c/Users/projects/rails/writehub$ cd ~
ibunhabibu@DESKTOP-RG3E4I0:~$ cd .docker/
ibunhabibu@DESKTOP-RG3E4I0:~/.docker$ nano config.json
then I edited it from
{
"credsStore": "desktop.exe"
}
to
{
"credStore": "desktop.exe"
}
after removing s in credsStore the problems solved