Professional Documents
Culture Documents
Recently I posted how to run the Ubiquiti UniFi Controller in the cloud (https://miketabor.com/install-ubiquiti-uni -
controller-cloud/) using services like Linode (//miketabor.com/links/linode/), Vultr (//miketabor.com/links/vultr/),
or DigitalOcean (//miketabor.com/links/digitalocean/). However, a few people has asked if I could post
instructions on how to run the UniFi controller in Docker, similar how I have CrashPlan
(https://miketabor.com/run-crashplan-docker-synology-nas/) running in Docker.
For the steps below I’ll be using my Synology DS1815+ NAS (https://miketabor.com/links/ds1815+/) which is
compatible to run Docker. If you’re unsure if your model support docker or not you can check here
(https://www.synology.com/en-us/dsm/app_packages/Docker).
I’ll assume your Synology NAS does support Docker and you’ve already installed the Synology Docker app on
your Synology NAS.
1. SSH into your Synology NAS (https://miketabor.com/links/ds1815+/) using PuTTy or other terminal of your
choice, login using your account with admin access.
2. First lets create a new folder called “uni ” located in “docker“, this will be used to store all our UniFi
Controller con gs, so when we upgrade the Docker container our con gs remain in place. (Replace volume1
with your desired volume)
mkdir /volume1/docker/unifi
(https://miketabor.com/wp-content/uploads/2016/09/01-uni -controller-docker-synology-create-folder.png)
3. Now lets pull, or download, the UniFi Controller Docker container from the Docker Hub by typing the
following command:
sudo docker pull jacobalberty/unifi:latest
https://miketabor.com/running-ubiquiti-unifi-controller-in-docker-on-synology-nas/ 1/9
24/11/2017 Running Ubiquiti UniFi controller in Docker on Synology NAS - Mike Tabor
(https://miketabor.com/wp-content/uploads/2016/08/docker-pull-uni -controller.png)
4. Next lets run the new UniFi Controller container by typing the following, again replacing ‘volume1‘ with the
volume you create the uni folder on.
sudo docker run -d --name=unifi-controller --net=host --volume=/volume1/docker/unifi:/var/lib/unifi -p 8080:8080/tcp -p 8081:80
(https://miketabor.com/wp-content/uploads/2016/09/04-uni -controller-docker-synology-run-container.png)
Now we’ll just need to nish the UniFi controller setup by following the wizard once you’ve loaded
https://<SYNOLOGY_IP>:8443 in your browser from the above steps.
https://miketabor.com/running-ubiquiti-unifi-controller-in-docker-on-synology-nas/ 2/9
24/11/2017 Running Ubiquiti UniFi controller in Docker on Synology NAS - Mike Tabor
(https://miketabor.com/wp-content/uploads/2016/09/uni -controller-setup-step-1.png)
2. The UniFi controller will automatically nd any access points on the same network, select the access point
you’d like to con gure for the Docker UniFi controller to manage and click Next.
(https://miketabor.com/wp-content/uploads/2016/09/uni -controller-setup-step-2.png)
3. Enter the SSID you’d like your wireless network to be named and a password then click Next.
(https://miketabor.com/wp-content/uploads/2016/09/uni -controller-setup-step-3.png)
Optionally, you can also con gure a guest wireless as well by checking the “Enable Guest Access”.
4. Now set the login user and password. This will be used to access the Docker UniFi Controller management
page. Then press Next.
(https://miketabor.com/wp-content/uploads/2016/09/uni -controller-setup-step-4.png)
https://miketabor.com/running-ubiquiti-unifi-controller-in-docker-on-synology-nas/ 3/9
24/11/2017 Running Ubiquiti UniFi controller in Docker on Synology NAS - Mike Tabor
5. Finally, review that the SSID and User names both look correct then press Finish.
(https://miketabor.com/wp-content/uploads/2016/09/uni -controller-setup-step-5.png)
Once the wizard has completed your Ubiquiti access point will be adopted, con gured and ready to connect to
from any of your wireless devices.
It is a good idea to log into the UniFi Controller management page (https://<SYNOLOGY_IP>:8443) and check the
rmware status of the access point. As shown below the access point is still functioning but also showing us
that a upgrade for the access point is available. Simply click on the “Upgrade” link and the UniFi controller will
automatically upgrade it within just a few minutes.
(https://miketabor.com/wp-content/uploads/2016/09/uni -controller-setup-step-6.png)
The bene ts of running the Ubiquiti UniFi controller in Docker on the Synology NAS is that it’s free (if you already
own the Synology NAS) and super simple to setup. Depending on your Synology specs, such as a Synology
DS1815+ (https://miketabor.com/links/ds1815+/), you could easily manage several access points and sites
using the docker UniFi controller and upgrading to 16GB RAM (https://miketabor.com/how-to-upgrade-synology-
ds1815-16gb-ram/) will certainly help with resources.
Otherwise, if you are looking for a great solution for your home or business then the UniFi Controller in Docker is
perfect t!
https://miketabor.com/running-ubiquiti-unifi-controller-in-docker-on-synology-nas/ 4/9
24/11/2017 Running Ubiquiti UniFi controller in Docker on Synology NAS - Mike Tabor
(http://www.facebook.com/share.php?u=https://miketabor.com/running-ubiquiti-uni -controller-in-docker-on-
synology-nas/)
(http://twitter.com/intent/tweet?url=https://miketabor.com/running-ubiquiti-uni -controller-in-docker-on-
synology-nas/&text=Running Ubiquiti UniFi controller in Docker on Synology NAS)
(http://pinterest.com/pin/create/button/?url=https://miketabor.com/running-ubiquiti-uni -controller-in-docker-on-
synology-
nas/&media=&description=Running%20Ubiquiti%20UniFi%20controller%20in%20Docker%20on%20Synology%20NAS)
25 Comments MikeTabor
1 Login
Sort by Oldest
Recommend 1 ⤤ Share
LOG IN WITH
OR SIGN UP WITH DISQUS ?
Name
Sounds like you took all defaults for the GUI install which doesn't save UniFi configs when the package is updated. It also sets
the network to bridge for the container. If you view the container details, under port settings it will show what port 8443 (and
others) have actually been mapped to.
i'd suggest following the steps above. For more everyone it's a simple copy and paste - no need to be afraid of the command
line. ;-)
△ ▽ • Reply • Share ›
By the way Unifi in Docker on Synology is great!! I just dont know how to stay up to date..
△ ▽ • Reply • Share ›
https://miketabor.com/running-ubiquiti-unifi-controller-in-docker-on-synology-nas/ 6/9
24/11/2017 Running Ubiquiti UniFi controller in Docker on Synology NAS - Mike Tabor
-Michael
△ ▽ • Reply • Share ›
ALSO ON MIKETABOR
How to update VMware ESXi 6.5 to 6.5 Update 1 How to upgrade Synology DS1815+ to 16GB RAM
4 comments • 3 months ago 35 comments • 2 years ago
Michael — Thanks for the comment! Glad this was of some help.- Tim Sheridan — Make sure you keep the "non-upgradable" 2GB
Michael module so that you can put it back into the unit if you do need to
return …
How to create a virtual machine on a Synology NAS Synology DSM 6.0.2-8451 Update 2
11 comments • 5 months ago 2 comments • a year ago
Patrick — It seems once the VM is created the allocated RAM Michael — Wio_Steelhor,I haven't had any issues myself on my
cannot be changed anymore. So good that I waited until the 16GB … DS1815+, but have heard a couple cases where people said they had
to …
$171.95
(https://miketabor.com/links/altaro/)
https://miketabor.com/running-ubiquiti-unifi-controller-in-docker-on-synology-nas/ 8/9
24/11/2017 Running Ubiquiti UniFi controller in Docker on Synology NAS - Mike Tabor
(https://miketabor.com/links/turbonomic/)
(https://miketabor.com/links/thinscale/)
Advertise Here
(//srv.buysellads.com/
BE SOCIABLE
RECENT POSTS
Be social! How to start a blog (https://miketabor.com/how-to-start-a-blog/)
Fixing, This host currently has no management network redundancy (https://miketabor.com/how-to- x-host-currently-no-management-network-
redundancy/)
https://miketabor.com/running-ubiquiti-unifi-controller-in-docker-on-synology-nas/ 9/9