Why are the sample records still there after I recreated my Docker container?
Technology“It's a fresh container, so the demo should be empty,” my study partner said. We removed and recreated the local container for our practice book-list app, then saw the same sample titles again. The setup mounts a named Docker volume for its database.
There are no real borrower records involved, but we want a repeatable empty starting point for a lesson. Docker's documentation says volume contents exist outside a particular container's lifecycle. Docker's volume documentation
What should we identify before trying another reset? I don't want to delete unrelated volumes simply because replacing this container didn't reset the data the way we expected.