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
[](https://blog.linuxserver.io"all the things you can do with our containers including How-To guides, opinions and much more!")
@@ -94,7 +93,7 @@ Access the web gui at `https://<your-ip>:80`, for more information check out [Ki
94
93
95
94
## Usage
96
95
97
-
Here are some example snippets to help you get started creating a container.
96
+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
98
97
99
98
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
100
99
@@ -116,7 +115,8 @@ services:
116
115
- 80:80
117
116
- 443:443
118
117
restart: unless-stopped
119
-
# This container requires an external application to be run separately to be run separately.
118
+
119
+
# This container requires an external application to be run separately.
120
120
# MariaDB
121
121
mariadb:
122
122
image: lscr.io/linuxserver/mariadb:latest
@@ -135,7 +135,6 @@ services:
135
135
- 3306:3306
136
136
restart: unless-stopped
137
137
138
-
139
138
```
140
139
141
140
### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))
@@ -168,12 +167,11 @@ docker run -d \
168
167
--restart unless-stopped \
169
168
lscr.io/linuxserver/mariadb:latest
170
169
171
-
172
170
```
173
171
174
172
## Parameters
175
173
176
-
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.
174
+
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.
177
175
178
176
| Parameter | Function |
179
177
| :----: | --- |
@@ -192,10 +190,10 @@ You can set any environment variable from a file by using a special prepend `FIL
192
190
As an example:
193
191
194
192
```bash
195
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
193
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
196
194
```
197
195
198
-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
196
+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
199
197
200
198
## Umask for running applications
201
199
@@ -204,15 +202,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
204
202
205
203
## User / Group Identifiers
206
204
207
-
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`.
205
+
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`.
208
206
209
207
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
210
208
211
-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
209
+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
@@ -223,12 +226,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
223
226
224
227
## Support Info
225
228
226
-
* Shell access whilst the container is running: `docker exec -it kimai /bin/bash`
227
-
* To monitor the logs of the container in realtime: `docker logs -f kimai`
228
-
* container version number
229
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' kimai`
230
-
* image version number
231
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/kimai:latest`
229
+
* Shell access whilst the container is running:
230
+
231
+
```bash
232
+
docker exec -it kimai /bin/bash
233
+
```
234
+
235
+
* To monitor the logs of the container in realtime:
236
+
237
+
```bash
238
+
docker logs -f kimai
239
+
```
240
+
241
+
* Container version number:
242
+
243
+
```bash
244
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' kimai
245
+
```
246
+
247
+
* Image version number:
248
+
249
+
```bash
250
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/kimai:latest
251
+
```
232
252
233
253
## Updating Info
234
254
@@ -238,38 +258,83 @@ Below are the instructions for updating containers:
238
258
239
259
### Via Docker Compose
240
260
241
-
* Update all images: `docker-compose pull`
242
-
* or update a single image: `docker-compose pull kimai`
243
-
* Let compose update all containers as necessary: `docker-compose up -d`
244
-
* or update a single container: `docker-compose up -d kimai`
245
-
* You can also remove the old dangling images: `docker image prune`
261
+
* Update images:
262
+
* All images:
263
+
264
+
```bash
265
+
docker-compose pull
266
+
```
267
+
268
+
* Single image:
269
+
270
+
```bash
271
+
docker-compose pull kimai
272
+
```
273
+
274
+
* Update containers:
275
+
* All containers:
276
+
277
+
```bash
278
+
docker-compose up -d
279
+
```
280
+
281
+
* Single container:
282
+
283
+
```bash
284
+
docker-compose up -d kimai
285
+
```
286
+
287
+
* You can also remove the old dangling images:
288
+
289
+
```bash
290
+
docker image prune
291
+
```
246
292
247
293
### Via Docker Run
248
294
249
-
* Update the image: `docker pull lscr.io/linuxserver/kimai:latest`
250
-
* Stop the running container: `docker stop kimai`
251
-
* Delete the container: `docker rm kimai`
295
+
* Update the image:
296
+
297
+
```bash
298
+
docker pull lscr.io/linuxserver/kimai:latest
299
+
```
300
+
301
+
* Stop the running container:
302
+
303
+
```bash
304
+
docker stop kimai
305
+
```
306
+
307
+
* Delete the container:
308
+
309
+
```bash
310
+
docker rm kimai
311
+
```
312
+
252
313
* 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)
253
-
* You can also remove the old dangling images: `docker image prune`
314
+
* You can also remove the old dangling images:
315
+
316
+
```bash
317
+
docker image prune
318
+
```
254
319
255
320
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
256
321
257
322
* Pull the latest image at its tag and replace it with the same env variables in one run:
258
323
259
-
```bash
260
-
docker run --rm \
261
-
-v /var/run/docker.sock:/var/run/docker.sock \
262
-
containrrr/watchtower \
263
-
--run-once kimai
264
-
```
324
+
```bash
325
+
docker run --rm \
326
+
-v /var/run/docker.sock:/var/run/docker.sock \
327
+
containrrr/watchtower \
328
+
--run-once kimai
329
+
```
265
330
266
331
* You can also remove the old dangling images: `docker image prune`
267
332
268
-
**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).
333
+
**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.
337
+
**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