title: How does a docker container restart work?
body: <p>When the docker container has, for example, 100 processes running and we restart the container using <code>docker restart container-name</code> how can docker restart all these 100 processes?</p>
  <p>Will it store all the processes details and start them again?</p>
  <p><strong>Edit:</strong></p>
  <p>The following can be considered as specific question that I want to be answered:</p>
  <p>After starting a container, I login to the container using <code>docker exec -it container-name bash</code> and I start some background processes. Then I exit the container and do a <code>docker restart</code> or a <code>stop</code> followed by a <code>start</code>. Will I get those manually started processes running again automatically?</p>