docker-archive / communitytools-image2docker-win

305 stars 78 forks source link

Write a bootstrap startup command in the Dockerfile #26

Closed sixeyed closed 7 years ago

sixeyed commented 7 years ago

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.

StefanScherer commented 7 years ago

Or is a tool like the microsoft/iis ServiceMonitor.exe a thing? https://github.com/Microsoft/iis-docker/issues/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).

sixeyed commented 7 years ago

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.