Restart the computer, and make sure Docker is not running. If it is trying to start, then stop it and close it.
Open your Applications folder and delete Docker, then empty the Trash or
brew uninstall docker
Open Terminal and type:
rm -rf ~/Library/Group\ Containers/group.com.docker
rm -rf ~/Library/Containers/com.docker.*
rm -rf ~/Library/Application\ Support/Docker\ Desktop
Download Docker Desktop again, and copy Docker to your
/Applications folder or
brew install --cask docker
Open Docker.