title: Recreate container on stop with docker-compose
body: <p>I am trying to set up a multi-container service with docker-compose.</p>
  <p>Some of the containers need to be restarted from a fresh container (eg. the file system should be like in the image) when they restart.
  How can I achieve this?</p>
  <p>I've found the <code>restart: always</code> option I can put on my service in the <code>docker-compose.yml</code> file, but that doesn't give me a fresh file system as it uses the same container.</p>
  <p>I've also seen the <code>--force-recreate</code> option of <code>docker-compose up</code>, but that doesn't apply as that only recreates the containers when the command is runned.</p>
  <h3>EDIT:</h3>
  <p>This is probably not a docker-compose issue, but more of a general docker question: <strong>What is the best way to make sure a container is in a fresh state when it is restarted?</strong> With fresh state, I mean a state identical to that of a brand new container from the same image. Restarted is the docker command <code>docker restart</code> or <code>docker stop</code> and <code>docker start</code>.</p>