docker-compose rm | Docker Documentation
docs.docker.com › compose › referenceRunning the command with no options also removes one-off containers created by docker-compose up or docker-compose run: $ docker-compose rm Going to remove djangoquickstart_web_run_1 Are you sure? [yN] y Removing djangoquickstart_web_run_1 ... done. fig, composition, compose, docker, orchestration, cli, rm.
Use volumes | Docker Documentation
docs.docker.com › storage › volumesRemove volumes. A Docker data volume persists after a container is deleted. There are two types of volumes to consider: Named volumes have a specific source from outside the container, for example awesome:/bar. Anonymous volumes have no specific source so when the container is deleted, instruct the Docker Engine daemon to remove them.
docker-compose rm - Docker Documentation
https://docs.docker.com/compose/reference/rmRemoves stopped service containers. By default, anonymous volumes attached to containers are not removed. You can override this with -v. To list all volumes, use docker volume ls. Any data which is not in a volume is lost. Running the command with no options also removes one-off containers created by docker-compose up or docker-compose run: