How to automatically remove container data from the host when rm the container?

I find that if running docker run -d -v /HOST/PATH:/CONTAINER/PATH IMAGE to mount data volumes, the data still remains on the host after deleting the container.
Is it designed to do so? Is there a way to automatically remove container data from the host when deleting the container?

  • How to set up executor IPs inside Docker containers?
  • Use domains instead of ports for multiple Docker containers
  • How do I run multiple commands within a Docker container in Jenkins?
  • How to run Docker on Ubuntu 15.04?
  • problems running logstash with -f flag in docker
  • Is it possible to optionally use the docker COPY instruction?
  • Docker container loosing network when my host machine switches network (Mac OSX)
  • install local docker registry on centos 7
  • Way to increase Boot2Docker volume size or alternative to install docker images locally
  • Mesos/Marathon Memory usage limits for Docker
  • Spark cluster mode on Mesos: how to pass configuration to executor?
  • Not able to connect mongodb with Rails container using Docker compose
  • One Solution collect form web for “How to automatically remove container data from the host when rm the container?”

    Manage data in containers:

    Data volumes are designed to persist data, independent of the container’s lifecycle.

    If you don’t want the data to persist on the host, don’t use volumes.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.