diff --git a/libcxx/utils/ci/run-buildbot-container b/libcxx/utils/ci/run-buildbot-container --- a/libcxx/utils/ci/run-buildbot-container +++ b/libcxx/utils/ci/run-buildbot-container @@ -12,6 +12,12 @@ # state in `/llvm` is shared between the container and the host machine, which # is useful for editing files on the host machine and re-running the build bot # in the container. +# +# If you are on Linux you will likely not be able to write to the mount because +# the user in the container doesn't have permissions to do so. +# If you need to do this, give that user permission to do so after running +# the container or add this flag to run the container as your local user IDs: +# --user $(id -u):$(id -g) set -e @@ -21,4 +27,4 @@ exit 1 fi docker pull ldionne/libcxx-builder -docker run -it --volume "${MONOREPO_ROOT}:/llvm" --workdir "/llvm" ldionne/libcxx-builder bash +docker run -it --volume "${MONOREPO_ROOT}:/llvm" --workdir "/llvm" --cap-add=SYS_PTRACE ldionne/libcxx-builder bash