From 0d06c01155e4399b03db0376b361e5b8b0579abb Mon Sep 17 00:00:00 2001 From: LinuxServer-CI Date: Wed, 13 Feb 2019 16:48:38 +0000 Subject: [PATCH] Bot Updating Templated Files --- images/docker-duckdns.md | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/images/docker-duckdns.md b/images/docker-duckdns.md index 0d57a668dc..cb8eadb366 100755 --- a/images/docker-duckdns.md +++ b/images/docker-duckdns.md @@ -34,16 +34,17 @@ Here are some example snippets to help you get started creating a container from ``` docker create \ --name=duckdns \ + -e PUID=1001 `#optional` \ + -e PGID=1001 `#optional` \ -e TZ=Europe/London \ -e SUBDOMAINS=subdomain1,subdomain2 \ -e TOKEN=token \ + -e LOG_FILE=false `#optional` \ + -v :/config `#optional` \ --restart unless-stopped \ 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 :/config` used in conjunction with logging to file ### docker-compose @@ -57,9 +58,15 @@ services: image: linuxserver/duckdns container_name: duckdns environment: + - PUID=1001 #optional + - PGID=1001 #optional - TZ=Europe/London - SUBDOMAINS=subdomain1,subdomain2 - TOKEN=token + - LOG_FILE=false #optional + volumes: + volumes: + - :/config #optional mem_limit: 4096m restart: unless-stopped ``` @@ -78,17 +85,34 @@ Docker images are configured using parameters passed at runtime (such as those a | 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 | | `SUBDOMAINS=subdomain1,subdomain2` | multiple subdomains allowed, comma separated, no spaces | | `TOKEN=token` | DuckDNS token | +| `LOG_FILE=false` | Set to `true` to log to file (also need to map /config). | ### Volume Mappings (`-v`) | 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 - 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 +* **08.02.19:** - Update readme with optional parameters. * **10.12.18:** - Fix docker compose example. * **15.10.18:** - Multi-arch image. * **22.08.18:** - Rebase to alpine 3.8.