How to have Docker running independent of a user logged in

I have installed Docker for Mac on a Mac Mini Server and it runs fine, when I log in with screen share but seems to stop once I disconnect. Is there a possibility to have it running all the time, independent of me being logged in?
I have searched the internet already but haven’t found anything helpful yet. Could you help me to find a solution?