Unifi Controller
Installing Unifi Controller on Docker on CentOS 8
(or probably any docker installation at this point but anyways)
Create:
#!/bin/bash
docker create \
--name=unifi-controller \
-e PUID=1000 \
-e PGID=1000 \
-e MEM_LIMIT=1024M `#optional` \
-p 3478:3478/udp \
-p 10001:10001/udp \
-p 8080:8080 \
-p 8081:8081 \
-p 8443:8443 \
-p 8843:8843 \
-p 8880:8880 \
-p 6789:6789 \
-v /etc/unifi/config:/config \
--restart unless-stopped \
linuxserver/unifi-controller
So for -v, "/etc/unifi/config" is on the host, and it is mapped to "/config" in the VM. It should be owner:group same as the PUID and PGID values used in the docker create command.
What | How |
---|---|
Update the image | docker pull linuxserver/unifi-controller |
Stop the running container | docker stop unifi-controller |
Delete the container | docker rm unifi-controller |
Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved) | (see above) |
Start the new container | docker start unifi-controller |
You can also remove the old dangling images | docker image prune |