For When You Can't Have The Real Thing
[ start | index | login ]
start > CentOS > 8 > Unifi Controller

Unifi Controller

Created by dave. Last edited by dave, 3 years and 342 days ago. Viewed 1,523 times. #3
[diff] [history] [edit] [rdf]

Installing Unifi Controller on Docker on CentOS 8

(or probably any docker installation at this point but anyways)


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 \

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.

Update the imagedocker pull linuxserver/unifi-controller
Stop the running containerdocker stop unifi-controller
Delete the containerdocker 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 containerdocker start unifi-controller
You can also remove the old dangling imagesdocker image prune
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt