I’m reading the book The docker book version v1.2.0, in chapter 6 in page 178 it said that
if you deleted the last container that uses a volume, the volume will disappear. Be carful about deleting containers that might hold volumes with data you need
But when I tried it, the volume isn’t deleted.
Is that just because I’m reading old version ??
>Solution :
The newer versions will not delete your volume, unless you’re using the parameter --volumes or -v.
https://docs.docker.com/engine/reference/commandline/rm/#options