title: Use of Supervisor in docker
body: <p>I am not asking about the use of supervisor with dockers but just want to have my understanding validated.</p>
  
  <p>I understand that docker runs a single process when it is run. Also, supervisor is used when we need to run multiple process within the container.</p>
  
  <p>I have seen several examples where a container is started from base image and several service are installed and the container is committed to form a new image, all without supervisor.</p>
  
  <p>So, my basic doubt was what is the difference between both approaches.</p>
  
  <p>My understanding is that when docker container is stopped it sends a kill signal to the process with PID 1, PID 1 manages the child process and stops all child which is exactly what is done by supervisor, while we can install multiple process without supervisor only one process can be run when <code>docker run</code> is issued and when container is stopped only the PID 1 will be sent signals and other running process will not be stopped gracefully.</p>
  
  <p>Please confirm how much my understanding about using <code>supervisord</code> is correct.</p>