Docker desktop is not easy to run as a background task on a windows server. A common issue that you may find would be that although the service is running, when the user log out from the machine, then docker stops working.
Error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post
open //./pipe/docker_engine: The system cannot find the file specified
Process exited with code 1
In order to bypass this behavior you can leave the user session online inside the server by using lock instead of sign out in the windows server machine.
Given that the machine restarts, the docker service will stop working on the background. In order to bypass this problem you can use an external utility from sysinternals in order to auto logon the user.
https://learn.microsoft.com/en-us/sysinternals/downloads/autologon
When you unzip the download, you can notice the exe application which you should run and input the user password.
Then an automatic logon will be configured using the password that you provided but is stored encrypted on the machine.
After the reboot, the docker desktop service will run without any manual action.