Docker and Unifi controller setup

This is what i used to finally sort out migrating controller from windows to raspberry pi docker

https://www.disk91.com/2023/technology/networks/install-unifi-controller-on-raspberry-pi/

It was all a bit of a mare after i tried to move the unifi controller from windows to a docker image running on rpi – could not get the access points to be seen so i could adopt them.Tried all the methods like set-inform etc to no avail. Ended up very frustrated and deleted the docker image and used another one to set it all up from scratch, including SSHing into the access points and factory resetting them. This worked ok via the guide above.