powerman / dockerize

Utility to simplify running applications in docker containers
MIT License
182 stars 17 forks source link

Consider adding -exec flag to replace dockerize process with given command #15

Closed powerman closed 1 year ago

powerman commented 5 years ago

This should let us run command as PID1 and/or avoid subtle issues related to signal forwarding, running command under supervision, etc.

In case dockerize needs to both run given command and tail logs it'll have to run tail in child process and configure it to exit when it parent process (command) will exit.

powerman commented 1 year ago

Implemented in v0.18.0, except -exec option is not compatible with -tail to keep it simple.