UniFi® Video is a powerful and flexible, integrated IP video management surveillance system designed to work with UniFi® Video Cameras.
docker create \
--name=unifi-video \
-v <path to data>:/config \
-p 7080:7080 \
-p 7443:7443 \
-p 6666:6666 \
-p 7442:7442 \
-p 7445:7445 \
-p 7446:7446 \
-p 7447:7447 \
kc8apf/unifi-video
When started with a blank volume mounted at /config, UniFi Video will typically generate a few errors similar to the following:
2018-03-15 20:33:28,583 ERROR Unable to locate appender ConsoleErrorAppender for logger uv.stream
2018-03-15 20:33:28,584 ERROR Unable to locate appender ConsoleErrorAppender for logger uv.login
Exception in thread "EmsInitTask" java.lang.NullPointerException
at com.ubnt.airvision.service.ems.C.do.super(Unknown Source)
at com.ubnt.airvision.service.ems.C$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
These occur on a new install even when UniFi Video is installed directly on an Ubuntu 16.04 install. Despite these errors, the application does start and works correctly.
The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side.
For example, -p external:internal
is the port mapping from internal to external of the container.
So -p 8080:80
would expose port 80 from inside the container to be accessible from the host's IP on port 8080
http://192.168.x.x:8080 would show you what's running INSIDE the container on port 80.
-p 7080
- port(s) required for Unifi to function-p 7443
- port(s)-p 6666
- port(s)-p 7442
- port(s)-p 7445
- port(s)-p 7446
- port(s)-p 7447
- port(s)-v /config
- where unifi stores it config files etc, needs 3gb free
It is based on xenial with s6 overlay, for shell access whilst the container is running do docker exec -it unifi /bin/bash
.
The webui is at https://ip:7443 , setup with the first run wizard.
To adopt a Unifi Camera that isn't showing as unmanaged in the UI:
- Nagivate to the camera's IP in a web browser. Use ubnt for both the username and password.
- Enter the IP address of the Unfi Video server
- Click Save Changes
- Look for the camera in the server UI in the Unmanaged category
-
Shell access whilst the container is running:
docker exec -it unifi-video /bin/bash
-
To monitor the logs of the container in realtime:
docker logs -f unifi-video
-
container version number
docker inspect -f '{{ index .Config.Labels "build_version" }}' unifi-video
- image version number
docker inspect -f '{{ index .Config.Labels "build_version" }}' kc8apf/unifi-video
Thanks to linuxserver.io who provided much inspiration with linuxserver/unifi.