That doesnt seem like some kind of data corruption but a config issue. Your container is probably running as its own separate user and the folder structure exported to the container is somehow using a different user. Did you got those scripts from some github project?
Discussion
Yeah, that script is in the repo. Sounds like a permission error. And those are not trivial to solve for people who haven't used docker and docker compose before