 <p>We've developed a process-manager tailor-made for Docker containers and have been using it with quite a bit of success to solve exactly the problem you describe. The best starting point is to <a href="https://github.com/garywiz/chaperone-docker" rel="nofollow">take a look at chaperone-docker on github</a>. The readme on the first page contains a quick link to a minimal base image as well as a fully configured LAMP stack so you can try it out and see what a fully-configured image would look like. It's open-source and fully documented.</p>