docker-archive / communitytools-image2docker-win

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write a bootstrap startup command in the Dockerfile

sixeyed opened this issue · comments

For any features which run as Windows Services, add a Start-Service command in a bootstrap file, and set the bootstrap as the Dockerfile's CMD instruction.

Or is a tool like the microsoft/iis ServiceMonitor.exe a thing? microsoft/iis-docker#1 OK, it still isn't open sourced, but I like the idea of a generic Windows Service <-> CMD helper, probably monitoring multiple services (and logging the event log of the service to stdout/stderr).

Yes, I was thinking that too. I guess Wait-Service will have to do until ServiceMonitor.exe gets OS though, so it won't have the logging piece.