Build and run UniFi Controller using Docker on Raspberry Pi

125 || 0  || 2019-07-14 12:28:52 || root || || Bash

Use the following commands to build Docker image and run a container. All commands below are compatible with Raspbian 9 (stretch).

Dockerfile itself can be found here:

# Go to the directory with the Dockerfile
cd /home/docker/unifi/

# Build new image
docker build --no-cache -t unifi:5.8.30 .

# Run container
docker run -d -p 3478:3478/udp -p 6789:6789 -p 8080:8080 -p 8443:8443 -p 10001:10001/udp -v /home/docker/unifi/permanent_data/data:/usr/lib/unifi/data -v /home/docker/unifi/permanent_data/logs:/usr/lib/unifi/logs --restart=always unifi:5.8.30