title: How to execute a command before removing a container with Docker
body: <p>I need some help with this. I have created a container running a mysql database with Docker and I would like to know if it is possible make a SQL Dump before the container was removed.</p>
  
  <p>Otherwise, if a dump cannot be made before the container is killed, the data stored in the DB will be lost.</p>