Docker Desktop for windows is stopping

I’m trying to build and push the image using azure pipelines. We have installed Docker Desktop on a windows machine. The issue is that I have to run the Docker Desktop manually on windows to run the pipeline or else it throws the below error:

  1. ##[error]The process ‘C:\Program Files\Docker\Docker\resources\bin\docker.exe’ failed with exit code 1

Is there any solution to fix this?