It appears that Docker is better suited for single process applications and services, but is it capable to offer a stable containment for a more complex application ( that has multiple processes, listening ports, considerable storage usage ) ?
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- What would prevent code running in a Docker contai
- How to reload apache in php-apache docker containe
Sure checkout http://supervisord.org/ i am creating complete LAMP stacks for Magento development.
Note that I have a supervisor image and some examples on github. In case someone thinks it usefull: I also wrote a blog on this.
I mainly use supervisor to keep deamon processes running, but you could create complex environments as well (e.g. specify the order to start processes etc.).
Yes! You can use Supervisor, monit, runit, or even a "real" init system (including upstart or systemd) to run multiple processes. You can even use a cheap shell script like the following: