Public Repository

Last pushed: a year ago
Short Description
Ubiquiti Networks Unifi Controller using host networking.
Full Description

NOTE: This is an outdated version.


Places the Unifi Controller from Ubiquiti Networks into a Docker container. Deploying the container on the host network allows the Unifi controller to receive and interact with other devices on the same network segment. (Layer 2 network broadcast.)

I'm not affiliated with Ubiquiti networks.

Example Deployment

docker run \
--detach \
--net host \
--restart always \
--name unifi-controller \
--volume /opt/srv/unifi:/UniFi/data/db \

The above will make the Controller available on the Docker host network at port 8443.

https://<docker host>:8443/

In addition, the underlying Mongo DB will be placed on the host filesystem at


This allows future upgrades to use the existing bundled database.


Please comment on the usefulness of this image. Let me know if you encounter any problems. Star this project if you like it!


FROM java:8

# This container is designed to run on the host network so that layer 2 networking is available.

ADD /tmp/
ADD /tmp/

RUN unzip /tmp/ && \
    tar xzf /tmp/mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz && \
    rm UniFi/bin/mongod && \
    ln -s /mongodb-linux-x86_64-ubuntu1604-3.2.7/bin/mongod /UniFi/bin/mongod && \
    rm /tmp/mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz /tmp/

VOLUME ["/UniFi/data/db"]

ENTRYPOINT [ "java", "-jar", "UniFi/lib/ace.jar" ]
CMD [ "start" ]
Docker Pull Command