Build and run UniFi Controller using Docker on Raspberry Pi

35 || 0  || 2018-09-30 08:27:32 || 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: https://snippets.yoctocloud.cc/snippets/8b3e124affea4f228bba6daa434df91e/

# 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