title: How to unbind volume from docker image?
body: <p>I created an image from a running container, which had a volume mapped at the time, e.g.: <code>-v /home/user/myproject/xyz:/opt/xyz</code>. Now, when I run that image, e.g.: <code>docker run -i -t myimage bash</code>, there is a mount in /opt/xyz. There isn't any files in it, but I cannot delete or unmount that folder.</p>
  
  <p>Anyone knows how to get rid of that binding?..</p>
  
  <p><strong>UPDATE</strong>: one method I found is to start a container, export it, then import it back as a new image</p>