One possibility that I ran into was that I didn't realize that on "docker run ..." command I used the flag "-rm".
On docker documentation:
"If you set the --rm
flag, Docker also removes the anonymous volumes associated with the container when the container is removed."
https://docs.docker.com/reference/cli/docker/container/run/#rm