You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52-3Lines changed: 52 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ TLDR: Multi-arch support is changing from multiple repos to one repo per contain
26
26
[](https://microbadger.com/images/linuxserver/duckdns"Get your own version badge on microbadger.com")
[Duckdns](https://duckdns.org/) is a free service which will point a DNS (sub domains of duckdns.org) to an IP of your choice. The service is completely free, and doesn't require reactivation or forum posts to maintain its existence.
31
33
@@ -35,6 +37,8 @@ TLDR: Multi-arch support is changing from multiple repos to one repo per contain
35
37
36
38
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list).
37
39
40
+
Simply pulling `linuxserver/duckdns` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
41
+
38
42
The architectures supported by this image are:
39
43
40
44
| Architecture | Tag |
@@ -43,6 +47,7 @@ The architectures supported by this image are:
43
47
| arm64 | arm64v8-latest |
44
48
| armhf | arm32v6-latest |
45
49
50
+
46
51
## Usage
47
52
48
53
Here are some example snippets to help you get started creating a container.
@@ -52,16 +57,17 @@ Here are some example snippets to help you get started creating a container.
`-e LOG_FILE=true` if you prefer the duckdns log to be written to a file instead of the docker log
64
-
`-v <path to data>:/config` used in conjunction with logging to file
65
71
66
72
### docker-compose
67
73
@@ -75,9 +81,14 @@ services:
75
81
image: linuxserver/duckdns
76
82
container_name: duckdns
77
83
environment:
84
+
- PUID=1001 #optional
85
+
- PGID=1001 #optional
78
86
- TZ=Europe/London
79
87
- SUBDOMAINS=subdomain1,subdomain2
80
88
- TOKEN=token
89
+
- LOG_FILE=false #optional
90
+
volumes:
91
+
- </path/to/appdata/config>:/config #optional
81
92
mem_limit: 4096m
82
93
restart: unless-stopped
83
94
```
@@ -88,10 +99,28 @@ Container images are configured using parameters passed at runtime (such as thos
88
99
89
100
| Parameter | Function |
90
101
| :----: | --- |
102
+
|`-e PUID=1001`| for UserID - see below for explanation |
103
+
|`-e PGID=1001`| for GroupID - see below for explanation |
91
104
|`-e TZ=Europe/London`| Specify a timezone to use EG Europe/London |
92
105
|`-e SUBDOMAINS=subdomain1,subdomain2`| multiple subdomains allowed, comma separated, no spaces |
93
106
|`-e TOKEN=token`| DuckDNS token |
107
+
|`-e LOG_FILE=false`| Set to `true` to log to file (also need to map /config). |
108
+
|`-v /config`| Used in conjunction with logging to file. |
109
+
110
+
## User / Group Identifiers
111
+
112
+
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`.
113
+
114
+
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
94
115
116
+
In this instance `PUID=1001` and `PGID=1001`, to find yours use `id user` as below:
You only need to set the PUID and PGID variables if you are mounting the /config folder
95
124
96
125
97
126
## Application Setup
@@ -111,8 +140,28 @@ Container images are configured using parameters passed at runtime (such as thos
111
140
* image version number
112
141
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/duckdns`
113
142
143
+
## Updating Info
144
+
145
+
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.
146
+
147
+
Below are the instructions for updating containers:
148
+
149
+
### Via Docker Run/Create
150
+
* Update the image: `docker pull linuxserver/duckdns`
151
+
* Stop the running container: `docker stop duckdns`
152
+
* Delete the container: `docker rm duckdns`
153
+
* Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
154
+
* Start the new container: `docker start duckdns`
155
+
* You can also remove the old dangling images: `docker image prune`
156
+
157
+
### Via Docker Compose
158
+
* Update the image: `docker-compose pull linuxserver/duckdns`
159
+
* Let compose update containers as necessary: `docker-compose up -d`
160
+
* You can also remove the old dangling images: `docker image prune`
161
+
114
162
## Versions
115
163
164
+
***08.02.19:** - Update readme with optional parameters.
0 commit comments