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
{{ message }}
This repository was archived by the owner on Jan 1, 2024. It is now read-only.
[](https://blog.linuxserver.io"all the things you can do with our containers including How-To guides, opinions and much more!")
@@ -65,7 +64,7 @@ The user manual is available at [www.domoticz.com](https://www.domoticz.com)
65
64
66
65
## Usage
67
66
68
-
Here are some example snippets to help you get started creating a container.
67
+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
69
68
70
69
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
71
70
@@ -110,7 +109,6 @@ docker run -d \
110
109
--device path to device:path to device \
111
110
--restart unless-stopped \
112
111
lscr.io/linuxserver/domoticz:latest
113
-
114
112
```
115
113
116
114
### Passing Through USB Devices
@@ -125,9 +123,10 @@ usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
125
123
```
126
124
As you can see above, the device node created is ttyUSB0. It does not say where, but it's almost always in /dev/. The correct tag for passing through this USB device is '--device /dev/ttyUSB0:/dev/ttyUSB0'
127
125
126
+
128
127
## Parameters
129
128
130
-
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
129
+
Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
131
130
132
131
| Parameter | Function |
133
132
| :----: | --- |
@@ -149,10 +148,10 @@ You can set any environment variable from a file by using a special prepend `FIL
149
148
As an example:
150
149
151
150
```bash
152
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
151
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
153
152
```
154
153
155
-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
154
+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
156
155
157
156
## Umask for running applications
158
157
@@ -161,15 +160,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
161
160
162
161
## User / Group Identifiers
163
162
164
-
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`.
163
+
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`.
165
164
166
165
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
167
166
168
-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
167
+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
@@ -180,12 +184,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
180
184
181
185
## Support Info
182
186
183
-
* Shell access whilst the container is running: `docker exec -it domoticz /bin/bash`
184
-
* To monitor the logs of the container in realtime: `docker logs -f domoticz`
185
-
* container version number
186
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' domoticz`
187
-
* image version number
188
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/domoticz:latest`
187
+
* Shell access whilst the container is running:
188
+
189
+
```bash
190
+
docker exec -it domoticz /bin/bash
191
+
```
192
+
193
+
* To monitor the logs of the container in realtime:
194
+
195
+
```bash
196
+
docker logs -f domoticz
197
+
```
198
+
199
+
* Container version number:
200
+
201
+
```bash
202
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' domoticz
203
+
```
204
+
205
+
* Image version number:
206
+
207
+
```bash
208
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/domoticz:latest
209
+
```
189
210
190
211
## Updating Info
191
212
@@ -195,38 +216,83 @@ Below are the instructions for updating containers:
195
216
196
217
### Via Docker Compose
197
218
198
-
* Update all images: `docker-compose pull`
199
-
* or update a single image: `docker-compose pull domoticz`
200
-
* Let compose update all containers as necessary: `docker-compose up -d`
201
-
* or update a single container: `docker-compose up -d domoticz`
202
-
* You can also remove the old dangling images: `docker image prune`
219
+
* Update images:
220
+
* All images:
221
+
222
+
```bash
223
+
docker-compose pull
224
+
```
225
+
226
+
* Single image:
227
+
228
+
```bash
229
+
docker-compose pull domoticz
230
+
```
231
+
232
+
* Update containers:
233
+
* All containers:
234
+
235
+
```bash
236
+
docker-compose up -d
237
+
```
238
+
239
+
* Single container:
240
+
241
+
```bash
242
+
docker-compose up -d domoticz
243
+
```
244
+
245
+
* You can also remove the old dangling images:
246
+
247
+
```bash
248
+
docker image prune
249
+
```
203
250
204
251
### Via Docker Run
205
252
206
-
* Update the image: `docker pull lscr.io/linuxserver/domoticz:latest`
207
-
* Stop the running container: `docker stop domoticz`
208
-
* Delete the container: `docker rm domoticz`
253
+
* Update the image:
254
+
255
+
```bash
256
+
docker pull lscr.io/linuxserver/domoticz:latest
257
+
```
258
+
259
+
* Stop the running container:
260
+
261
+
```bash
262
+
docker stop domoticz
263
+
```
264
+
265
+
* Delete the container:
266
+
267
+
```bash
268
+
docker rm domoticz
269
+
```
270
+
209
271
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
210
-
* You can also remove the old dangling images: `docker image prune`
272
+
* You can also remove the old dangling images:
273
+
274
+
```bash
275
+
docker image prune
276
+
```
211
277
212
278
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
213
279
214
280
* Pull the latest image at its tag and replace it with the same env variables in one run:
215
281
216
-
```bash
217
-
docker run --rm \
218
-
-v /var/run/docker.sock:/var/run/docker.sock \
219
-
containrrr/watchtower \
220
-
--run-once domoticz
221
-
```
282
+
```bash
283
+
docker run --rm \
284
+
-v /var/run/docker.sock:/var/run/docker.sock \
285
+
containrrr/watchtower \
286
+
--run-once domoticz
287
+
```
222
288
223
289
* You can also remove the old dangling images: `docker image prune`
224
290
225
-
**Note:** We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose](https://docs.linuxserver.io/general/docker-compose).
291
+
**warning**: We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose](https://docs.linuxserver.io/general/docker-compose).
* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
295
+
**tip**: We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
0 commit comments