Run docker as a service

You can get Docker to run before user login if you add a Scheduled Task. (This has some security implications if you save a local user’s password.) Hackishly:

  • Create a local account for docker (e.g. run -> “control userpasswords2”)
  • Create a scheduled task that runs as your new user
  • Set it to run “C:\Program Files\Docker\Docker\Docker for Windows.exe”
  • Set the task to run 1 minute after logon, and wait for a network connection
1 Like