This docker image runs the unifi-video controller on Ubuntu. Originally intended for Unraid 6.x, it should run fine anywhere.
Set your local data, videos and logs directories in the
docker run command. You can also specify a custom user and group for the daemon to run as.
The first run should create the file
system.properties in your data directory. If it doesn't, create it yourself. You must add
is_default=true as the first line in order to force the wizard to run.
Restart the docker, visit http://localhost:7080 or http://<ip.address>:7080/ to start the Unifi Video wizard.
docker run \ --name unifi-video \ --cap-add SYS_ADMIN \ --cap-add DAC_READ_SEARCH \ -p 7443:7443 \ -p 7445:7445 \ -p 7446:7446 \ -p 7447:7447 \ -p 7080:7080 \ -p 6666:6666 \ -v <data dir>:/var/lib/unifi-video \ -v <videos dir>:/usr/lib/unifi-video/data/videos \ -v <logs dir>:/var/log/unifi-video \ -e TZ=America/Los_Angeles \ -e PUID=99 \ -e PGID=100 \ -e DEBUG=1 \ pducharme/unifi-video-controller
tmpfs mount error
mount: tmpfs is write-protected, mounting read-only mount: cannot mount tmpfs read-only
If you get this tmpfs mount error, add
--security-opt apparmor:unconfined \ to your list of run options. This error has been seen on Ubuntu, but may occur on other platforms as well.
Updated Unifi docker to latest version and it reset deleting all my data. I went through multiple updates with no issues before so didn't bother making a backup. Any reason why this happened? It even cleared the backup folder.
Can this be updated to the latest ?
This works with Synology NAS using the Docker package. To get it to run you need to enable the following settings:
Execute container with high privilege
Use the same network as Docker host
chained: I added the option "--restart=always" to the run command so that if my Synology NAS reboots, the container is started again. Works like a charm. I also ran into the "tmpfs mount error" and the suggested fix above worked.
Thanks a lot for the build, I've managed to get it working a few times on my QNAP solo (with-out a nice custom docker like this) but it's always let me down in other areas (not starting automatically, etc). You wouldn't happen to know how to mount something on boot would you? Right now I have to manually mount my drive every time so the recording doesn't fail :(
Nice image! Would it be possible to get it to tag the build with the version of the unifi-video controller? Just to make it easier if you need to be able to run a specific version?
Just a note for some that have had trouble, you need to put the system.properties in the video folder.
$> vi /data/unifi/video/system.properties
$> chmod 777 /data/unifi/video/system.properties
Then make sure you map the folder when you run the image eg:
$>docker run -d -v /data/unifi/video:/var/lib/unifi-video -v /data/unifi/logs:/var/log/unifi-video pducharme/unifi-video-controller
Hi I have installed your container in synology NAS docker.
I was able to access web GUI but I'm not able to access it. I haven't set any user/password .
What is it wrong ?
Installed, web GUI is accessible, however no system.properties file is generated on first run. Please update this build, thanks!
Hi. I have just tried installing this on my unRaid setup, and the unifi-video/data/ folder does not get created on first run, nor is there a systems.properties file anywhere in the directories that are created after run. I can access the web ui, where is prompts me for a username a password, which I have not configured, and it appears to not use defaults... Help please!