Tuesday, February 6, 2018

Installing (and updating) Unifi Controller as a docker image on your Synology NAS

Prerequisites


  • Make sure you log in to DSM on your NAS as an admin user.
  • Docker must be installed on your NAS. If It isn’t, go to "Package Center", select "Utilities" and look for "Docker" under the "Third-party" heading and add the package to your NAS (if Docker is not available for your NAS, this HOWTO is not for you).

Installation

  1. In the (DSM) Main menu, choose "Docker".
  2. Click on "Registry" and search for "unifi". Select the "jacobalberty/unifi" entry and click "Download". Select the "stable" branch.
  3. When the image is downloaded, it’ll show up under "Image", on this page select it and click "Launch". Note that it can take a while to finish the download, DSM will show a "system event" notification when download is completed.
  4. Give the controller a container name you like (or accept the default) and click on "Advanced Settings".
  5. In the first tab "General settings", check "Enable auto-restart"
  6. In the tab "Volume", click "Add Folder"
  7. Select "docker", click on "Create folder", name it "unifi" and click OK. Select it and click "Select"
  8. Under "mount path", enter "/unifi". Later on, you will see that subfolders data and log will be created. A subfolder folder cert can be manually created to host your SSL certificate.

  9. In the tab "Network", check "Use the same network as Docker Host". Click "Apply" and click on "Next" and after that on "Apply".
  10. Start your container and check the settings by selecting the running container and clicking on "Details".

Updating

  1. In the DSM Main menu, choose "Docker".
  2. Click on "Registry" and search for "unifi". Select the "jacobalberty/unifi" image and click "Download". Select the branch you installed before ("stable" is the branch you should choose). Wait until the download completes (DSM will show a "system event" notification when download has completed)
  3. Click on "Container", select the UniFi Controller container and subsequently:
    1. Stop the container (flip the on-off switch you see) and wait till the status of the container changes to "Stopped".
    2. Click the "Action" button and select "Clear".
    3. Start the container (flip the on-off switch you see) and wait till the status of the container changes to "Running".
That’s it! The new version of Unifi Controller should be running now.

4 comments:

  1. Thank you - got it running in minutes and it follows the same sets as the terminal method :)

    ReplyDelete
  2. Thank you, works like a charm :-) !

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. The update didn't work for me. I have it up running on my Synology, with Unifi version 5.4.11

    ReplyDelete