title: How to delete a volume in docker if it is being used by containers
body: <p>I have a task in which they have sent us to delete a docker volume which has a container associated with it, I would like to know if there is any way to delete the volume without deleting the container that is using it.</p>
  <p>I have tried the following but it won't let me:</p>
  <pre><code>sudo docker volume rm -f vol1
  </code></pre>
  <p>It returns the following.</p>
  <pre><code>Error response from daemon: remove vol1: volume is in use - [a90d72c647bf7cdf2a3d8d8f0005163f072e4f6da80f27bca7b81f437f2f21d3]
  </code></pre>