Skip to content

Commit abc1cda

Browse files
Bot Updating Templated Files
1 parent 88221d1 commit abc1cda

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,13 @@ It is possible to install extra packages during container start using [universal
189189
- INSTALL_PACKAGES=libfuse2|git|gdb
190190
```
191191
192-
193192
## Usage
194193
195194
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
196195
196+
>[!NOTE]
197+
>Unless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided.
198+
197199
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
198200
199201
```yaml
@@ -211,7 +213,7 @@ services:
211213
- PGID=1000
212214
- TZ=Etc/UTC
213215
volumes:
214-
- /path/to/config:/config
216+
- /path/to/github-desktop/config:/config
215217
ports:
216218
- 3000:3000
217219
- 3001:3001
@@ -231,7 +233,7 @@ docker run -d \
231233
-e TZ=Etc/UTC \
232234
-p 3000:3000 \
233235
-p 3001:3001 \
234-
-v /path/to/config:/config \
236+
-v /path/to/github-desktop/config:/config \
235237
--shm-size="1gb" \
236238
--restart unless-stopped \
237239
lscr.io/linuxserver/github-desktop:latest
@@ -243,14 +245,15 @@ Containers are configured using parameters passed at runtime (such as those abov
243245

244246
| Parameter | Function |
245247
| :----: | --- |
246-
| `-p 3000` | Github Desktop gui. |
247-
| `-p 3001` | HTTPS Github Desktop gui. |
248+
| `-p 3000:3000` | Github Desktop gui. |
249+
| `-p 3001:3001` | HTTPS Github Desktop gui. |
248250
| `-e PUID=1000` | for UserID - see below for explanation |
249251
| `-e PGID=1000` | for GroupID - see below for explanation |
250252
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
251253
| `-v /config` | Users home directory in the container, stores local files and settings |
252254
| `--shm-size=` | This is needed for electron applications to function properly. |
253255
| `--security-opt seccomp=unconfined` | For Docker Engine only, many modern gui apps need this to function on older hosts as syscalls are unknown to Docker. Github Desktop runs in no-sandbox mode without it. |
256+
| `--cap-add=IPC_LOCK` | Required for keyring functionality. |
254257

255258
### Portainer notice
256259

0 commit comments

Comments
 (0)