`/src/Gemfile.lock`에 쓰는 도중 오류가 발생했습니다. 해당 경로에 쓰기 권한을 부여해야 할 가능성이 높습니다

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