Skip to content
This repository was archived by the owner on Jan 7, 2024. It is now read-only.

Commit f642a3e

Browse files
Bot Updating Templated Files
1 parent 5f158eb commit f642a3e

File tree

1 file changed

+101
-35
lines changed

1 file changed

+101
-35
lines changed

README.md

+101-35
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-controller/blob/master/.github/CONTRIBUTING.md -->
3-
1+
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2+
<!-- Please read https://github.com/linuxserver/docker-unifi-controller/blob/master/.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!")
@@ -66,6 +65,7 @@ This image provides various versions that are available via tags. Please read th
6665
| :----: | :----: |--- |
6766
| latest || Stable Unifi Controller releases. |
6867
| mongoless || Stable Unifi Controller releases without mongodb included. |
68+
6969
## Application Setup
7070

7171
### From 2024-01-01 this image will be deprecated and it will no longer be updated. Please migrate to our [Unifi Network Application](https://github.com/linuxserver/docker-unifi-network-application) image instead
@@ -96,7 +96,7 @@ If you are using a reverse proxy which validates certificates, you need to [disa
9696

9797
## Usage
9898

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

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

@@ -150,12 +150,11 @@ docker run -d \
150150
-v /path/to/data:/config \
151151
--restart unless-stopped \
152152
lscr.io/linuxserver/unifi-controller:latest
153-
154153
```
155154

156155
## Parameters
157156

158-
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.
157+
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.
159158

160159
| Parameter | Function |
161160
| :----: | --- |
@@ -182,10 +181,10 @@ You can set any environment variable from a file by using a special prepend `FIL
182181
As an example:
183182

184183
```bash
185-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
184+
-e FILE__MYVAR=/run/secrets/mysecretvariable
186185
```
187186

188-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
187+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
189188

190189
## Umask for running applications
191190

@@ -194,15 +193,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
194193

195194
## User / Group Identifiers
196195

197-
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`.
196+
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`.
198197

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

201-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
200+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
202201

203202
```bash
204-
$ id username
205-
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
203+
id your_user
204+
```
205+
206+
Example output:
207+
208+
```text
209+
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
206210
```
207211

208212
## Docker Mods
@@ -213,12 +217,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
213217

214218
## Support Info
215219

216-
* Shell access whilst the container is running: `docker exec -it unifi-controller /bin/bash`
217-
* To monitor the logs of the container in realtime: `docker logs -f unifi-controller`
218-
* container version number
219-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' unifi-controller`
220-
* image version number
221-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/unifi-controller:latest`
220+
* Shell access whilst the container is running:
221+
222+
```bash
223+
docker exec -it unifi-controller /bin/bash
224+
```
225+
226+
* To monitor the logs of the container in realtime:
227+
228+
```bash
229+
docker logs -f unifi-controller
230+
```
231+
232+
* Container version number:
233+
234+
```bash
235+
docker inspect -f '{{ index .Config.Labels "build_version" }}' unifi-controller
236+
```
237+
238+
* Image version number:
239+
240+
```bash
241+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/unifi-controller:latest
242+
```
222243

223244
## Updating Info
224245

@@ -228,38 +249,83 @@ Below are the instructions for updating containers:
228249

229250
### Via Docker Compose
230251

231-
* Update all images: `docker-compose pull`
232-
* or update a single image: `docker-compose pull unifi-controller`
233-
* Let compose update all containers as necessary: `docker-compose up -d`
234-
* or update a single container: `docker-compose up -d unifi-controller`
235-
* You can also remove the old dangling images: `docker image prune`
252+
* Update images:
253+
* All images:
254+
255+
```bash
256+
docker-compose pull
257+
```
258+
259+
* Single image:
260+
261+
```bash
262+
docker-compose pull unifi-controller
263+
```
264+
265+
* Update containers:
266+
* All containers:
267+
268+
```bash
269+
docker-compose up -d
270+
```
271+
272+
* Single container:
273+
274+
```bash
275+
docker-compose up -d unifi-controller
276+
```
277+
278+
* You can also remove the old dangling images:
279+
280+
```bash
281+
docker image prune
282+
```
236283

237284
### Via Docker Run
238285

239-
* Update the image: `docker pull lscr.io/linuxserver/unifi-controller:latest`
240-
* Stop the running container: `docker stop unifi-controller`
241-
* Delete the container: `docker rm unifi-controller`
286+
* Update the image:
287+
288+
```bash
289+
docker pull lscr.io/linuxserver/unifi-controller:latest
290+
```
291+
292+
* Stop the running container:
293+
294+
```bash
295+
docker stop unifi-controller
296+
```
297+
298+
* Delete the container:
299+
300+
```bash
301+
docker rm unifi-controller
302+
```
303+
242304
* 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)
243-
* You can also remove the old dangling images: `docker image prune`
305+
* You can also remove the old dangling images:
306+
307+
```bash
308+
docker image prune
309+
```
244310

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

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

249-
```bash
250-
docker run --rm \
251-
-v /var/run/docker.sock:/var/run/docker.sock \
252-
containrrr/watchtower \
253-
--run-once unifi-controller
254-
```
315+
```bash
316+
docker run --rm \
317+
-v /var/run/docker.sock:/var/run/docker.sock \
318+
containrrr/watchtower \
319+
--run-once unifi-controller
320+
```
255321

256322
* You can also remove the old dangling images: `docker image prune`
257323

258-
**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).
324+
**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).
259325

260326
### Image Update Notifications - Diun (Docker Image Update Notifier)
261327

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

264330
## Building locally
265331

0 commit comments

Comments
 (0)