Why data in a volume survives docker rm
Select an icon to see what it is.
Step 2 of 6
docker rm deletes the writable layer
docker rm -f sends DELETE /containers/{id}?force=1. dockerd kills the container and removes its metadata and its writable layer. The file b.txt goes with it.
$ docker rm -f testerDELETE /v1.45/containers/d0e1f2a3b4c5d6e7d0e1f2a3b4c5d6e7d0e1f2a3b4c5d6e7d0e1f2a3b4c5d6e7?force=1
force=1 kills it with SIGKILL first