I am also encountering this issue. In my case, it appears to be due to my use of rootless Docker and the container not having write permissions to the mounted src directory. I have been unable to find a workaround at this time.
My user is running the container as expected (UID 1000), but inside the container all mounted files in src are owned by root (UID 0), and there is not a way to mount those files as a different user.
Related (de-linked due to new user link posting limits):
- github dot com/mamba-org/micromamba-docker/issues/407
- joeeey dot com/blog/rootless-docker-avoiding-common-caveats/#storage-fixes
OS: Ubuntu 24.04.1 LTS
Docker: v27.3.1, build ce12230 (rootless)
Discourse repo git commit: cc01555fce59e116b76c912b4c5195e111a652b2