Runnig. docker out of user context on Windows

I have a docker container running on a windows server and whenever I logout from the server the docker containers shuts down as well. is there a way for the container and docker itself to keep running even when I sign out form my profile. I tried creating tasks and running dockerd as a service but nothing seems to work. Please let me know If there is a way for this to work.