Docker(GitLab CI本地运行程序):“挂载被拒绝”

I'm using GitLab CI, and the excellent local GitLab CI runner for testing stages before pushing them using the docker exec method.

I use Golang as my language of choice and recently moved my $GOPATH from ~/go to /go, as per the official recommendations.

However, now when I try to test my builds, I get this error message:

ERROR: Job failed (system failure): Error response from daemon: Mounts denied:
The path /go/src/[redacted] is not shared from Docker -> Preferences... -> File Sharing.

Moving the code back to a folder under my home directory, it works again. Attempting the fix in the message gives another error:

rm: cannot remove ‘rm: cannot remove '/go/src/[redacted]': Read-only file system

It's trying to remove the current, local working directory (which is my actual repository, so I obviously do not want that).

What is the proper way to configure Docker (or the runner) to be able to work inside my $GOPATH?

Thanks for your time.