UniFi Controller Howto (1)
This howto is based on the following documentation:
- Docker UniFi Controller [EN] @ GitHub
Requirements
- Podman installation (See Howto "Podman on Fedora")
Installation
[Server Shell]: Edit the setup script
[Server Shell]: Run the script
~/dev/podman/unifi.sh
Update
NOTE:
This procedure updates all containers on the current system which are configured with an io.containers.autoupdate label.
[Server Shell]: Check if any image has been updated, if present, download the new image and restart the container
sudo podman auto-update
[Server Shell]: Delete unused images
sudo podman image prune
Test
[Server Shell]: Verify if the pod is running
sudo podman pod ps
Output:
POD ID NAME STATUS CREATED INFRA ID # OF CONTAINERS
5a7c619b0427 unifi Running 20 hours ago 0501c14a00d6 2
[Server Shell]: Verify if the containers are running
sudo podman ps --pod
Output:
0501c14a00d6 k8s.gcr.io/pause:3.5 20 hours ago Up 20 hours ago 0.0.0.0:3478->3478/udp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:8443->8443/tcp, 0.0.0.0:10001->10001/udp 5a7c619b0427-infra 5a7c619b0427 unifi
802310f325e2 docker.io/linuxserver/unifi-controller:latest 20 hours ago Up 20 hours ago 0.0.0.0:3478->3478/udp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:8443->8443/tcp, 0.0.0.0:10001->10001/udp unifi-main 5a7c619b0427 unifi
[Server Shell]: Check the container logs
sudo podman logs --follow 'unifi-main'
[Server Shell]: Check the server logs
sudo podman exec --interactive --tty 'unifi-main' \
tail --follow '/config/logs/server.log'
[Server Shell]: Verify if ports are open
sudo lsof -i ':3478,8080,8443,10001' -n -P
Output:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
conmon 71622 root 5u IPv4 351176 0t0 UDP *:3478
conmon 71622 root 6u IPv4 351177 0t0 TCP *:8080 (LISTEN)
conmon 71622 root 7u IPv4 351178 0t0 TCP *:8443 (LISTEN)
conmon 71622 root 8u IPv4 351179 0t0 UDP *:10001
[Client Shell]: Open the WebGUI
open 'http://arsenic.raysoft.loc:8080/'