diff --git a/README.md b/README.md index 3a2e03c..89136b3 100644 --- a/README.md +++ b/README.md @@ -115,9 +115,12 @@ Running rgit in Docker is also simple, just mount the directory containing your ```bash docker run --mount type=bind,source=/path/to/my-repos,target=/git \ + --user $UID:$GID \ -it ghcr.io/w4/rgit:main ``` +**Note**: Take care to replace `$UID` and `$GID` with the UID and GID of the user that owns the directory containing your repositories or there will be errors! [See here](https://linuxhandbook.com/uid-linux/) to learn how to find the UID of a user. + #### Docker Compose An example `docker-compose.yml` is provided for those who prefer using Compose. To configure the UID and GID, the user is specified in `docker-compose.override.yml`.