Skip to content

Commit

Permalink
Merge pull request #19 from graskaas/docker-fix
Browse files Browse the repository at this point in the history
Update Docker instructions to include user permissions
  • Loading branch information
w4 authored Aug 30, 2023
2 parents 40dcfdb + f32e304 commit f539ac9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit f539ac9

Please sign in to comment.