kopia lustrzana https://github.com/linuxserver/docker-documentation
Bot Updating Templated Files
rodzic
3a4c3c07b8
commit
479b9e258e
|
@ -36,8 +36,8 @@ Here are some example snippets to help you get started creating a container from
|
||||||
docker create \
|
docker create \
|
||||||
--name=plex \
|
--name=plex \
|
||||||
--net=host \
|
--net=host \
|
||||||
-e PUID=1001 \
|
-e PUID=1000 \
|
||||||
-e PGID=1001 \
|
-e PGID=1000 \
|
||||||
-e VERSION=docker \
|
-e VERSION=docker \
|
||||||
-v </path/to/library>:/config \
|
-v </path/to/library>:/config \
|
||||||
-v <path/to/tvseries>:/data/tvshows \
|
-v <path/to/tvseries>:/data/tvshows \
|
||||||
|
@ -61,15 +61,14 @@ services:
|
||||||
container_name: plex
|
container_name: plex
|
||||||
network_mode: host
|
network_mode: host
|
||||||
environment:
|
environment:
|
||||||
- PUID=1001
|
- PUID=1000
|
||||||
- PGID=1001
|
- PGID=1000
|
||||||
- VERSION=docker
|
- VERSION=docker
|
||||||
volumes:
|
volumes:
|
||||||
- </path/to/library>:/config
|
- </path/to/library>:/config
|
||||||
- <path/to/tvseries>:/data/tvshows
|
- <path/to/tvseries>:/data/tvshows
|
||||||
- </path/to/movies>:/data/movies
|
- </path/to/movies>:/data/movies
|
||||||
- </path for transcoding>:/transcode
|
- </path for transcoding>:/transcode
|
||||||
mem_limit: 4096m
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -91,8 +90,8 @@ Docker images are configured using parameters passed at runtime (such as those a
|
||||||
|
|
||||||
| Env | Function |
|
| Env | Function |
|
||||||
| :----: | --- |
|
| :----: | --- |
|
||||||
| `PUID=1001` | for UserID - see below for explanation |
|
| `PUID=1000` | for UserID - see below for explanation |
|
||||||
| `PGID=1001` | for GroupID - see below for explanation |
|
| `PGID=1000` | for GroupID - see below for explanation |
|
||||||
| `VERSION=docker` | Set whether to update plex or not - see Application Setup section. |
|
| `VERSION=docker` | Set whether to update plex or not - see Application Setup section. |
|
||||||
|
|
||||||
### Volume Mappings (`-v`)
|
### Volume Mappings (`-v`)
|
||||||
|
@ -133,11 +132,11 @@ When using volumes (`-v` flags), permissions issues can arise between the host O
|
||||||
|
|
||||||
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
|
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
|
||||||
|
|
||||||
In this instance `PUID=1001` and `PGID=1001`, to find yours use `id user` as below:
|
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ id username
|
$ id username
|
||||||
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
|
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Application Setup
|
## Application Setup
|
||||||
|
|
Ładowanie…
Reference in New Issue