Skip to content

Instantly share code, notes, and snippets.

@shanecowherd
Last active May 12, 2023 15:28
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shanecowherd/f59a7f047fa4f6c04cca9934c96c00ec to your computer and use it in GitHub Desktop.
Save shanecowherd/f59a7f047fa4f6c04cca9934c96c00ec to your computer and use it in GitHub Desktop.
Install the Unifi Controller software in a Docker container on Mac.
  1. Install Docker Desktop for Mac

  1. Download the unifi-controller container.
  • docker pull linuxserver/unifi-controller

  1. Create a new container using ~/Documents/unifi (or any folder) to store the settings.
docker create \
--name=unifi-controller \
-e PUID=1000 \
-e PGID=1000 \
-e MEM_LIMIT=1024M \
-p 3478:3478/udp \
-p 10001:10001/udp \
-p 8080:8080 \
-p 8081:8081 \
-p 8443:8443 \
-p 8843:8843 \
-p 8880:8880 \
-p 6789:6789 \
-v ~/Documents/unifi:/config \
--restart unless-stopped \
linuxserver/unifi-controller

  1. Helpful commands
  • docker stop unifi-controller
  • docker rm unifi-controller
  • docker start unifi-controller
  • docker image prune removes dangling images
  • docker container list --all lists containers
  • docker rmi HASH removes images
  • docker images lists images

  1. Start unifi-controller and view the website.
  • docker start unifi-controller
  • In Chrome goto: https://localhost:8443/

  1. Backup settings in ~/Documents/unifi for future use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment