Removing Volumes with Containers

Difficulty: Intermediate

Question

How do you remove a container and its associated anonymous volumes at once?

Answer

Use `docker rm -v <container_id>`.

Concepts covered

Cleanup, Volumes