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 7, 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!")
@@ -66,6 +65,7 @@ This image provides various versions that are available via tags. Please read th
### 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
96
96
97
97
## Usage
98
98
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.
100
100
101
101
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
102
102
@@ -150,12 +150,11 @@ docker run -d \
150
150
-v /path/to/data:/config \
151
151
--restart unless-stopped \
152
152
lscr.io/linuxserver/unifi-controller:latest
153
-
154
153
```
155
154
156
155
## Parameters
157
156
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.
159
158
160
159
| Parameter | Function |
161
160
| :----: | --- |
@@ -182,10 +181,10 @@ You can set any environment variable from a file by using a special prepend `FIL
182
181
As an example:
183
182
184
183
```bash
185
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
184
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
186
185
```
187
186
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.
189
188
190
189
## Umask for running applications
191
190
@@ -194,15 +193,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
194
193
195
194
## User / Group Identifiers
196
195
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`.
198
197
199
198
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
200
199
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:
* 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
+
```
244
310
245
311
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
246
312
247
313
* Pull the latest image at its tag and replace it with the same env variables in one run:
248
314
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
+
```
255
321
256
322
* You can also remove the old dangling images: `docker image prune`
257
323
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).
* 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.
0 commit comments