Skip to content

Commit 97f49ac

Browse files
Bot Updating Templated Files
1 parent fec1cf2 commit 97f49ac

File tree

1 file changed

+100
-35
lines changed

1 file changed

+100
-35
lines changed

README.md

Lines changed: 100 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2-
<!-- Please read the https://github.com/linuxserver/docker-unifi-network-application/blob/main/.github/CONTRIBUTING.md -->
3-
1+
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2+
<!-- Please read https://github.com/linuxserver/docker-unifi-network-application/blob/main/.github/CONTRIBUTING.md -->
43
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)
54

65
[![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
@@ -129,7 +128,7 @@ If you are using a reverse proxy which validates certificates, you need to [disa
129128

130129
## Usage
131130

132-
Here are some example snippets to help you get started creating a container.
131+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
133132

134133
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
135134

@@ -193,12 +192,11 @@ docker run -d \
193192
-v /path/to/data:/config \
194193
--restart unless-stopped \
195194
lscr.io/linuxserver/unifi-network-application:latest
196-
197195
```
198196

199197
## Parameters
200198

201-
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.
199+
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.
202200

203201
| Parameter | Function |
204202
| :----: | --- |
@@ -230,10 +228,10 @@ You can set any environment variable from a file by using a special prepend `FIL
230228
As an example:
231229

232230
```bash
233-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
231+
-e FILE__MYVAR=/run/secrets/mysecretvariable
234232
```
235233

236-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
234+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
237235

238236
## Umask for running applications
239237

@@ -242,15 +240,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
242240

243241
## User / Group Identifiers
244242

245-
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`.
243+
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`.
246244

247245
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
248246

249-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
247+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
250248

251249
```bash
252-
$ id username
253-
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
250+
id your_user
251+
```
252+
253+
Example output:
254+
255+
```text
256+
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
254257
```
255258

256259
## Docker Mods
@@ -261,12 +264,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
261264

262265
## Support Info
263266

264-
* Shell access whilst the container is running: `docker exec -it unifi-network-application /bin/bash`
265-
* To monitor the logs of the container in realtime: `docker logs -f unifi-network-application`
266-
* container version number
267-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' unifi-network-application`
268-
* image version number
269-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/unifi-network-application:latest`
267+
* Shell access whilst the container is running:
268+
269+
```bash
270+
docker exec -it unifi-network-application /bin/bash
271+
```
272+
273+
* To monitor the logs of the container in realtime:
274+
275+
```bash
276+
docker logs -f unifi-network-application
277+
```
278+
279+
* Container version number:
280+
281+
```bash
282+
docker inspect -f '{{ index .Config.Labels "build_version" }}' unifi-network-application
283+
```
284+
285+
* Image version number:
286+
287+
```bash
288+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/unifi-network-application:latest
289+
```
270290

271291
## Updating Info
272292

@@ -276,38 +296,83 @@ Below are the instructions for updating containers:
276296

277297
### Via Docker Compose
278298

279-
* Update all images: `docker-compose pull`
280-
* or update a single image: `docker-compose pull unifi-network-application`
281-
* Let compose update all containers as necessary: `docker-compose up -d`
282-
* or update a single container: `docker-compose up -d unifi-network-application`
283-
* You can also remove the old dangling images: `docker image prune`
299+
* Update images:
300+
* All images:
301+
302+
```bash
303+
docker-compose pull
304+
```
305+
306+
* Single image:
307+
308+
```bash
309+
docker-compose pull unifi-network-application
310+
```
311+
312+
* Update containers:
313+
* All containers:
314+
315+
```bash
316+
docker-compose up -d
317+
```
318+
319+
* Single container:
320+
321+
```bash
322+
docker-compose up -d unifi-network-application
323+
```
324+
325+
* You can also remove the old dangling images:
326+
327+
```bash
328+
docker image prune
329+
```
284330

285331
### Via Docker Run
286332

287-
* Update the image: `docker pull lscr.io/linuxserver/unifi-network-application:latest`
288-
* Stop the running container: `docker stop unifi-network-application`
289-
* Delete the container: `docker rm unifi-network-application`
333+
* Update the image:
334+
335+
```bash
336+
docker pull lscr.io/linuxserver/unifi-network-application:latest
337+
```
338+
339+
* Stop the running container:
340+
341+
```bash
342+
docker stop unifi-network-application
343+
```
344+
345+
* Delete the container:
346+
347+
```bash
348+
docker rm unifi-network-application
349+
```
350+
290351
* 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)
291-
* You can also remove the old dangling images: `docker image prune`
352+
* You can also remove the old dangling images:
353+
354+
```bash
355+
docker image prune
356+
```
292357

293358
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
294359

295360
* Pull the latest image at its tag and replace it with the same env variables in one run:
296361

297-
```bash
298-
docker run --rm \
299-
-v /var/run/docker.sock:/var/run/docker.sock \
300-
containrrr/watchtower \
301-
--run-once unifi-network-application
302-
```
362+
```bash
363+
docker run --rm \
364+
-v /var/run/docker.sock:/var/run/docker.sock \
365+
containrrr/watchtower \
366+
--run-once unifi-network-application
367+
```
303368

304369
* You can also remove the old dangling images: `docker image prune`
305370

306-
**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).
371+
**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).
307372

308373
### Image Update Notifications - Diun (Docker Image Update Notifier)
309374

310-
* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
375+
**tip**: We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
311376

312377
## Building locally
313378

0 commit comments

Comments
 (0)