Installed on Fedora Server 31 after running an update and reboot.
sudo dnf install podman
sudo systemctl enable io.podman.service
sudo systemctl start io.podman.service
sudo firewall-cmd --add-port 8081/tcp --add-port 8080/tcp --add-port 8443/tcp --add-port 8880/tcp --add-port 8843/tcp --zone=FedoraServer --permanent
sudo firewall-cmd --reload
sudo podman pull docker.io/jrei/systemd-ubuntu
sudo setsebool -P container_manage_cgroup on
sudo podman create -d --name unifictl --privileged --net=host -v /sys/fs/cgroup:/sys/fs/cgroup:ro jrei/systemd-ubuntu
sudo bash -c 'cat > /etc/systemd/system/unifictl-container.service <<EOF
[Unit]
Description=UniFi Controller Container
[Service]
Restart=always
ExecStart=/usr/bin/podman start -a unifictl
ExecStop=/usr/bin/podman stop -t 2 unifictl
[Install]
WantedBy=local.target
EOF'
sudo systemctl enable unifictl-container.service
sudo systemctl start unifictl-container.service
sudo podman exec -it unifictl /bin/bash
cat > /etc/sysctl.d/10-ipv6.conf <<EOF
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
EOF
sysctl -p /etc/sysctl.d/10-ipv6.conf
apt update ; apt upgrade -y ; apt install vim iproute2 wget net-tools apt-utils dialog ca-certificates -y
wget https://get.glennr.nl/unifi/install/unifi-5.12.35.sh ; chmod +x unifi-5.12.35.sh ; ./unifi-5.12.35.sh -skip