saltstack-formulas / docker-formula

Install and set up Docker
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
136 stars 330 forks source link

Init option for starting container #231

Closed KevinGage closed 3 years ago

KevinGage commented 5 years ago

Some docker containers require the --init option to reap their sub processes. The init option is described here https://docs.docker.com/engine/reference/commandline/run/

I don't see a way to provide this flag to containers created by salt.

noelmcloughlin commented 3 years ago

Just pass init: true per python docs: https://docker-py.readthedocs.io/en/stable/containers.html