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?

  • GUI's with Docker
  • Can't reach ActiveMQ from inside Docker container
  • Which Official Docker Image(s) should I use for running an application with multiple dependencies?
  • consul-template using Address not ServiceAddress in template
  • Docker volume performance degradation
  • Deploying an Angular app using Docker/Dokku
  • Docker-compose disable output on one of containers
  • Install nginx dynamic module using docker compose
  • docker, csgo server, lgsm, server never start
  • unbale to install glusterfs driver on Mac OS 10.11.6 Docker version 1.13.0
  • Docker installation just downloads index.html file
  • jenkins plugins installed via CLI inside docker container is not showing up in jenkins web console
  • 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.