kopia lustrzana https://github.com/linuxserver/docker-documentation
Bot Updating Templated Files
rodzic
7afd2779fa
commit
566e4968f2
|
@ -34,16 +34,17 @@ Here are some example snippets to help you get started creating a container from
|
||||||
```
|
```
|
||||||
docker create \
|
docker create \
|
||||||
--name=duckdns \
|
--name=duckdns \
|
||||||
|
-e PUID=1001 `#optional` \
|
||||||
|
-e PGID=1001 `#optional` \
|
||||||
-e TZ=Europe/London \
|
-e TZ=Europe/London \
|
||||||
-e SUBDOMAINS=subdomain1,subdomain2 \
|
-e SUBDOMAINS=subdomain1,subdomain2 \
|
||||||
-e TOKEN=token \
|
-e TOKEN=token \
|
||||||
|
-e LOG_FILE=false `#optional` \
|
||||||
|
-v </path/to/appdata/config>:/config `#optional` \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
linuxserver/duckdns
|
linuxserver/duckdns
|
||||||
```
|
```
|
||||||
|
|
||||||
### optional parameters
|
|
||||||
`-e LOG_FILE=true` if you prefer the duckdns log to be written to a file instead of the docker log
|
|
||||||
`-v <path to data>:/config` used in conjunction with logging to file
|
|
||||||
|
|
||||||
### docker-compose
|
### docker-compose
|
||||||
|
|
||||||
|
@ -57,9 +58,15 @@ services:
|
||||||
image: linuxserver/duckdns
|
image: linuxserver/duckdns
|
||||||
container_name: duckdns
|
container_name: duckdns
|
||||||
environment:
|
environment:
|
||||||
|
- PUID=1001 #optional
|
||||||
|
- PGID=1001 #optional
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
- SUBDOMAINS=subdomain1,subdomain2
|
- SUBDOMAINS=subdomain1,subdomain2
|
||||||
- TOKEN=token
|
- TOKEN=token
|
||||||
|
- LOG_FILE=false #optional
|
||||||
|
volumes:
|
||||||
|
volumes:
|
||||||
|
- </path/to/appdata/config>:/config #optional
|
||||||
mem_limit: 4096m
|
mem_limit: 4096m
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
@ -78,17 +85,34 @@ 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 |
|
||||||
|
| `PGID=1001` | for GroupID - see below for explanation |
|
||||||
| `TZ=Europe/London` | Specify a timezone to use EG Europe/London |
|
| `TZ=Europe/London` | Specify a timezone to use EG Europe/London |
|
||||||
| `SUBDOMAINS=subdomain1,subdomain2` | multiple subdomains allowed, comma separated, no spaces |
|
| `SUBDOMAINS=subdomain1,subdomain2` | multiple subdomains allowed, comma separated, no spaces |
|
||||||
| `TOKEN=token` | DuckDNS token |
|
| `TOKEN=token` | DuckDNS token |
|
||||||
|
| `LOG_FILE=false` | Set to `true` to log to file (also need to map /config). |
|
||||||
|
|
||||||
### Volume Mappings (`-v`)
|
### Volume Mappings (`-v`)
|
||||||
|
|
||||||
| Volume | Function |
|
| Volume | Function |
|
||||||
| :----: | --- |
|
| :----: | --- |
|
||||||
|
| `/config` | Used in conjunction with logging to file. |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## User / Group Identifiers
|
||||||
|
|
||||||
|
When using volumes (`-v` flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ id username
|
||||||
|
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
|
||||||
|
```
|
||||||
|
|
||||||
## Application Setup
|
## Application Setup
|
||||||
|
|
||||||
- Go to the [duckdns website](https://duckdns.org/), register your subdomain(s) and retrieve your token
|
- Go to the [duckdns website](https://duckdns.org/), register your subdomain(s) and retrieve your token
|
||||||
|
@ -110,6 +134,7 @@ Docker images are configured using parameters passed at runtime (such as those a
|
||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **08.02.19:** - Update readme with optional parameters.
|
||||||
* **10.12.18:** - Fix docker compose example.
|
* **10.12.18:** - Fix docker compose example.
|
||||||
* **15.10.18:** - Multi-arch image.
|
* **15.10.18:** - Multi-arch image.
|
||||||
* **22.08.18:** - Rebase to alpine 3.8.
|
* **22.08.18:** - Rebase to alpine 3.8.
|
||||||
|
|
Ładowanie…
Reference in New Issue