I went through numerous blogs, articles but didn't find satisfactory solution so posting here. Excuse me if it is already discussed or answered. Please direct me to the relevant pages. I got answers on how to kill supervisord if one of the process fails/exits, but when all processes exited then how to stop/kill supervisord.
We have 3 python processes running inside a docker using supervisord. I have found when all program gets exited successfully still my container is running as supervisord process is running which is the main PID1.
CMD ["/usr/bin/supervisord"]
How can I kill/stop supervisord, so that container will automatically pull down?