Public Repository

Last pushed: 2 years ago
Short Description
Runs the Ubiquiti Unifi controller software as a non root user.
Full Description

#Dockerfile this was built with:

FROM debian:squeeze
MAINTAINER GoodwinTek <info@goodwintek.com>

RUN echo deb http://www.ubnt.com/downloads/unifi/distros/deb/debian debian ubiquiti \
>> /etc/apt/sources.list
RUN echo deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen \
>> /etc/apt/sources.list
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C0A52C50
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7F0CEB10
RUN apt-get -y update && apt-get -y install unifi \
sudo
RUN useradd -m unifi
RUN touch /etc/sudoers.d/unifi && chmod 440 /etc/sudoers.d/unifi
RUN echo "unifi ALL = NOPASSWD:/usr/lib/unifi/bin/unifi.init" > /etc/sudoers.d/unifi
RUN echo "sudo /usr/lib/unifi/bin/unifi.init start" >> /home/unifi/.bashrc
USER unifi
CMD /bin/bash

#This is a full, untouched image.

Used as a stand alone solution or as a template for mounting pre-existing host data into the untouched image signified by the (Optional) tag.

#Run the full untouched image as a stand alone solution:

sudo docker run -dit -p 8081:8081 -p 8080:8080 -p 8443:8443 -p 8880:8880 -p 8843:8843 -p 27117:27117 -p 3478:3478 goodwintek/unifi

#(Optional) Run the untouched image using host data from /dockerhdd:

 docker run -dit -v /dockerhdd:/var/lib/unifi -p 8081:8081 -p 8080:8080 -p 8443:8443 -p 8880:8880 -p 8843:8843 -p 27117:27117 -p 3478:3478 goodwintek/unifi
Docker Pull Command
Owner
goodwintek