专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

jacobalberty/unifi Docker 镜像 - 轩辕镜像 | Docker 镜像高效稳定拉取服务

热门搜索:openclaw🔥nginx🔥redis🔥mysqlopenjdkcursorweb2apimemgraphzabbixetcdubuntucorednsjdk
unifi
jacobalberty/unifi
自动构建
jacobalberty
UniFi无线接入点控制器是一款用于集中管理多台无线接入点的网络管理工具,可实现AP部署配置、用户接入控制、网络状态实时监控、流量数据分析、安全策略制定实施及固件统一更新等功能,支持远程管理与无缝漫游,能有效优化网络性能,助力构建稳定、高效、安全的企业级无线网络环境。
1.4千 次收藏下载次数: 0状态:自动构建维护者:jacobalberty仓库类型:镜像最近更新:3 个月前
轩辕镜像,快一点,稳很多。点击查看
版本下载
轩辕镜像,快一点,稳很多。点击查看

Unifi-in-Docker (unifi-docker)

This repo contains a Dockerized version of Ubiqiti Network's Unifi Controller.

Why bother? Using Docker, you can stop worrying about version hassles and update notices for Unifi Controller, Java, or your OS. A Docker container wraps everything into one well-tested bundle.

To install, a couple lines on the command-line starts the container. To upgrade, just stop the old container, and start up the new. It's really that simple.

This container has been tested on Ubuntu, Debian, macOS, Windows, and even Raspberry Pi hardware.

Current Information

The current "latest" version is Unifi Controller 7.1.68. There are currently no hot-fix or CVE warnings affecting Unifi Controller.

Setting up, Running, Stopping, Upgrading

First, install Docker on the "Docker host" - the machine that will run the Docker and Unifi Controller software. Use any of the guides on the internet to install on your Docker host. For Windows, see the Microsoft guide for installing Docker.

Then use the following steps to set up the directories and start the Docker container running.

Setting up directories

One-time setup: create the unifi directory on the Docker host. Within that directory, create two sub-directories: data and log.

bash
cd # by default, use the home directory
mkdir -p unifi/data
mkdir -p unifi/log

Note: By default, this README assumes you will use the home directory on Linux, Unix, macOS. If you create the directory elsewhere, read the Options section below to adjust.)

Running Unifi-in-Docker

Each time you want to start Unifi, use this command. Each of the options is described below.

bash
docker run -d --init \
   --restart=unless-stopped \
   -p 8080:8080 -p 8443:8443 -p 3478:3478/udp \
   -e TZ='Africa/Johannesburg' \
   -v ~/unifi:/unifi \
   --user unifi \
   --name unifi \
   jacobalberty/unifi

In a minute or two, (after Unifi Controller starts up) you can go to [***] to complete configuration from the web (initial install) or resume using Unifi Controller.

Important: Two points to be aware of when you're setting up your Unifi Controller:

  • When your browser initially connects to the link above, you will see a warning about an untrusted certificate. If you are certain that you have typed the address of the Docker host correctly, agree to the connection.
  • See the note below about Override "Inform Host" IP so your Unifi devices can "find" the Unifi Controller.
Stopping Unifi-in-Docker

To change options, stop the Docker container then re-run the docker run... command above with the new options. Note: The docker rm unifi command simply removes the "name" from the previous Docker image. No time-consuming rebuild is required.

bash
docker stop unifi
docker rm unifi
Upgrading Unifi Controller

All the configuration and other files created by Unifi Controller are stored on the Docker host's local disk (~/unifi by default.) No information is retained within the container. An upgrade to a new version of Unifi Controller simply retrieves a new Docker container, which then re-uses the configuration from the local disk. The upgrade process is:

  1. MAKE A BACKUP on another computer, not the Docker host (Always, every time...)
  2. Stop the current container (see above)
  3. Enter docker run... with the newer container tag (see Supported Tags below.)

Options on the Command Line

The options for the docker run... command are:

  • -d - Detached mode: Unifi-in-Docker runs in the background
  • --init - Recommended to ensure processes get reaped when they die
  • --restart=unless-stopped - If the container should stop for some reason, restart it unless you issue a docker stop ...
  • -p ... - Set the ports to pass through to the container. -p 8080:8080 -p 8443:8443 -p 3478:3478/udp is the minimal set for a working Unifi Controller.
  • -e TZ=... Set an environment variable named TZ with the desired time zone. Find your time zone in this list of timezones.
  • -e ... See the Environment Variables section for more environment variables.
  • -v ... - Bind the volume ~/unifi on the Docker host to the directory /unifiinside the container. These instructions assume you placed the "unifi" directory in your home directory. If you created the directory elsewhere, modify the ~/unifi part of this option to match. See the Volumes discussion for other volumes used by Unifi Controller.
  • --user unifi - Run as a non-root user. See the Run as non-root User discussion below
  • jacobalberty/unifi - the name of the container to use. The jacobalberty... image is retrieved from Dockerhub. See the discussion about Supported Tags below.

Supported Tags

You can choose the version of Unifi Controller in the docker run ... command. In Docker terminology, these versions are specified by "tags".

For example, in this project the container named jacobalberty/unifi (with no "tag") provides the most recent stable release. See the table below for the current version.

The rc tag (for example, jacobalberty/unifi:rc) uses the most recent Release Candidate from the UniFi APT repository.

You may also specify a version number (e.g., jacobalberty/unifi:stable6) to get a specific version number, as shown in the table below.

Note: In Docker, specifying an image with no tag (e.g., jacobalberty/unifi) gets the "latest" tag. For Unifi-in-Docker, this uses the most recent stable version.

TagDescriptionChangelog
latest, 7.1.68Current Stable: Version 7.1.68 as of 2022-07-29Change Log 7.1.68
rcRelease Candidate: 7.2.92-rc as of 2022-07-29Change Log 7.2.91-rc
stable6Final stable version 6 (6.5.55)Change Log 6.5.55
stable5Final stable version 5 (5.4.23)Change Log 5.14.23
multiarch

All available containers now support multiarch with amd64, armhf, and arm64 builds included. armhf for now uses mongodb 3.4, I do not see much of a path forward for armhf due to the lack of mongodb support for 32 bit arm, but I will support it as long as feasibly possible, for now that date seems to be expiration of support for ubuntu 18.04.

Adopting Access Points and Unifi Devices

Override "Inform Host" IP

For your Unifi devices to "find" the Unifi Controller running in Docker, you MUST override the Inform Host IP with the address of the Docker host computer. (By default, the Docker container usually gets the internal address 172.17.x.x while Unifi devices connect to the (external) address of the Docker host.) To do this:

  • Find Settings -> System -> Other Configuration -> Override Inform Host: in the Unifi Controller web GUI. (It's near the bottom of that page.)
  • Check the "Enable" box, and enter the IP address of the Docker host machine.
  • Save settings in Unifi Controller
  • Restart UniFi-in-Docker container with docker stop ... and docker run ... commands.

See Side Projects for other techniques to get Unifi devices to adopt your new Unifi Controller.

Volumes

Unifi looks for the /unifi directory (within the container) for its special purpose subdirectories:

  • /unifi/data This contains your UniFi configuration data. (formerly: /var/lib/unifi)

  • /unifi/log This contains UniFi log files (formerly: /var/log/unifi)

  • /unifi/cert Place custom SSL certs in this directory. For more information regarding the naming of the certificates, see Certificate Support. (formerly: /var/cert/unifi)

  • /unifi/init.d You can place scripts you want to launch every time the container starts in here

  • /var/run/unifi Run information, in general you will not need to touch this volume. It is there to ensure UniFi has a place to write its PID files

Legacy Volumes

These are no longer actually volumes, rather they exist for legacy compatibility. You are urged to move to the new volumes ASAP.

  • /var/lib/unifi New name: /unifi/data
  • /var/log/unifi New name: /unifi/log

Environment Variables:

You can pass in environment variables using the -e option when you invoke docker run... See the TZ in the example above. Other environment variables:

  • UNIFI_HTTP_PORT This is the HTTP port used by the Web interface. Browsers will be redirected to the UNIFI_HTTPS_PORT. Default: 8080

  • UNIFI_HTTPS_PORT This is the HTTPS port used by the Web interface. Default: 8443

  • PORTAL_HTTP_PORT Port used for HTTP portal redirection. Default: 80

  • PORTAL_HTTPS_PORT Port used for HTTPS portal redirection. Default: 8843

  • UNIFI_STDOUT Controller outputs logs to stdout in addition to server.log Default: unset

  • TZ TimeZone. (i.e America/Chicago)

  • JVM_MAX_THREAD_STACK_SIZE Used to set max thread stack size for the JVM Example:

    --env JVM_MAX_THREAD_STACK_SIZE=1280k
    

    as a fix for [***]

  • LOTSOFDEVICES Enable this with true if you run a system with a lot of devices and/or with a low powered system (like a Raspberry Pi). This makes a few adjustments to try and improve performance:

    • enable unifi.G1GC.enabled
    • set unifi.xms to JVM_INIT_HEAP_SIZE
    • set unifi.xmx to JVM_MAX_HEAP_SIZE
    • enable unifi.db.nojournal
    • set unifi.dg.extraargs to --quiet

    See the Unifi support site for an explanation of some of those options. Default: unset

  • JVM_EXTRA_OPTS Used to start the JVM with additional arguments. Default: unset

  • JVM_INIT_HEAP_SIZE Set the starting size of the javascript engine for example: 1024M Default: unset

  • JVM_MAX_HEAP_SIZE Java Virtual Machine (JVM) allocates available memory. For larger installations a larger value is recommended. For memory constrained system this value can be lowered. Default: 1024M

Exposed Ports

The Unifi-in-Docker container exposes the following ports. A minimal Unifi Controller installation requires you expose the first three with the -p ... option.

  • 8080/tcp - Device command/control
  • 8443/tcp - Web interface + API
  • 3478/udp - STUN service
  • 8843/tcp - HTTPS portal (optional)
  • 8880/tcp - HTTP portal (optional)
  • 6789/tcp - Speed Test (unifi5 only) (optional)

See UniFi - Ports Used for more information.

Run as non-root User

The default container runs Unifi Controller as root. The recommended docker run... command above starts Unifi Controller so the image runs as unifi (non-root) user with the uid/gid 999/999. You can also set your data and logs directories to be owned by the proper gid.

Note: When you run as a non-root user, you will not be able to bind to lower ports by default. (This would not necessary if you are using the default ports.) If you must do this, also pass the --sysctl net.ipv4.ip_unprivileged_port_start=0 option on the docker run... to bind to whatever port you wish.

Certificate Support

To use custom SSL certs, you must map a volume with the certs to /unifi/cert

They should be named:

shell
cert.pem  # The Certificate
privkey.pem # Private key for the cert
chain.pem # full cert chain

If your certificate or private key have different names, you can set the environment variables CERTNAME and CERT_PRIVATE_NAME to the name of your certificate/private key, e.g. CERTNAME=my-cert.pem and CERT_PRIVATE_NAME=my-privkey.pem.

For letsencrypt certs, we'll autodetect that and add the needed Identrust X3 CA Cert automatically. In case your letsencrypt cert is already the chained certificate, you can set the CERT_IS_CHAIN environment variable to true, e.g. CERT_IS_CHAIN=true. This option also works together with a custom CERTNAME.

Additional Information

This document describes everything you need to get Unifi-in-Docker running. The Side Projects and Background Info page provides more about what we've learned while developing Unifi-in-Docker.

TODO

This list is empty for now, please add your suggestions.

查看更多 unifi 相关镜像 →
linuxserver/unifi logo
linuxserver/unifi
linuxserver
LinuxServer.io提供的Unifi容器,用于运行Unifi控制器以管理Ubiquiti网络设备。
258 次收藏1000万+ 次下载
7 年前更新
goofball222/unifi logo
goofball222/unifi
goofball222
运行UniFi Network Application的Docker容器,支持多种稳定版和测试版标签,提供Alpine、Debian、Ubuntu基础镜像选项,支持外部MongoDB集成、自定义SSL证书及环境变量配置,适用于网络设备集中管理与监控。
158 次收藏1000万+ 次下载
13 天前更新
tibmeister/unifi logo
tibmeister/unifi
tibmeister
Ubiquiti UniFi控制器Docker镜像,用于集中管理UniFi网络设备(如路由器、交换机、无线AP)的配置、监控与维护。
1万+ 次下载
2 个月前更新
11notes/unifi logo
11notes/unifi
11notes
包含MongoDB的Unifi控制器镜像,无需单独数据库;默认以非root用户(1000:1000)运行,具备安全的CI/CD流程、应用级健康检查及自动更新功能,确保安全与稳定。
19 次收藏1万+ 次下载
17 天前更新
webhippie/unifi logo
webhippie/unifi
webhippie
用于运行Unifi网络管理系统的Docker镜像,支持集中管理Ubiquiti网络设备,提供便捷的容器化部署与隔离运行环境。
1万+ 次下载
1 个月前更新
jcberthon/unifi logo
jcberthon/unifi
jcberthon
这是一个容器化的UniFi Network Controller,支持非root用户运行,遵循最小权限原则,通过定期更新和安全配置提供稳定的网络设备管理功能,适用于家庭和企业网络设备的集中管理。
2 次收藏1万+ 次下载
1 年前更新

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

docker search 报错:专属域名下仅支持 Docker Hub 查询

docker search 报错问题

网页搜不到镜像:Docker Hub 有但轩辕镜像搜索无结果

镜像搜索不到

离线传输镜像:无法直连时用 docker save/load 迁移

离线传输镜像

Docker 插件安装错误:application/vnd.docker.plugin.v1+json

Docker 插件安装错误

WSL 下 Docker 拉取慢:网络与挂载目录影响及优化

WSL 拉取镜像慢

轩辕镜像是否安全?镜像完整性校验(digest)说明

镜像安全性

如何用轩辕镜像拉取镜像?登录方式与专属域名配置

如何拉取镜像

错误码与失败问题

manifest unknown 错误:镜像不存在或标签错误

manifest unknown 错误

TLS/SSL 证书验证失败:Docker pull 时 HTTPS 证书错误

TLS 证书验证失败

DNS 解析超时:无法解析镜像仓库地址或连接超时

DNS 解析超时

410 Gone 错误:Docker 版本过低导致协议不兼容

410 错误:版本过低

402 Payment Required 错误:流量耗尽错误提示

402 错误:流量耗尽

401 UNAUTHORIZED 错误:身份认证失败或登录信息错误

身份认证失败错误

429 Too Many Requests 错误:请求频率超出专业版限制

429 限流错误

Docker login 凭证保存错误:Cannot autolaunch D-Bus(不影响登录)

凭证保存错误

账号 / 计费 / 权限

免费版与专业版区别:功能、限额与使用场景对比

免费版与专业版区别

支持的镜像仓库:Docker Hub、GCR、GHCR、K8s 等列表

轩辕镜像支持的镜像仓库

拉取失败是否扣流量?计费规则说明

拉取失败流量计费

KYSEC 权限不够:麒麟 V10/统信 UOS 下脚本执行被拦截

KYSEC 权限错误

如何申请开具发票?(增值税普票/专票)

开具发票

如何修改网站与仓库登录密码?

修改网站和仓库密码

配置与原理类

registry-mirrors 未生效:仍访问官方仓库或报错的原因

registry-mirrors 未生效

如何去掉镜像名称中的轩辕域名前缀?(docker tag)

去掉域名前缀

如何拉取指定架构镜像?(ARM64/AMD64 等多架构)

拉取指定架构镜像

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
jacobalberty/unifi
博客公告Docker 镜像公告与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单,官方技术交流群:1072982923。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单,官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.