title: docker - driver "devicemapper" failed to remove root filesystem after process in container killed
body: <p>I am using Docker version 17.06.0-ce on Redhat with devicemapper storage. I am launching a container running a long-running service. The master process inside the container sometimes dies for whatever reason. I get the following error message. </p>
  
  <p>/bin/bash: line 1:    40 Killed                  python -u scripts/server.py start go</p>
  
  <p>I would like the container to exit and to be restarted by docker. However docker never exits. If I do it manually I get the following error: </p>
  
  <p>Error response from daemon: driver "devicemapper" failed to remove root filesystem. </p>
  
  <p>After googling, I tried a bunch of things: </p>
  
  <pre><code>docker rm -f &lt;container&gt;
  rm -f &lt;pth to mount&gt;
  umount &lt;pth to mount&gt;
  </code></pre>
  
  <p>All result in device is busy. The only remedy right now is to reboot the host system which is obviously not a long-term solution. </p>
  
  <p>Any ideas? </p>