Created
February 11, 2018 22:09
-
-
Save mattconnell/ee983fb89edd1f151bdef949e1d0780b to your computer and use it in GitHub Desktop.
Ubiquiti unifi docker container script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Pull the latest version because we always want it. | |
echo "Attempting to pull latest container version..." | |
docker pull jacobalberty/unifi:latest | |
# Run the container. | |
echo "Starting container..." | |
docker run \ | |
--rm \ | |
--init \ | |
-p 8080:8080 \ | |
-p 8443:8443 \ | |
-p 3478:3478/udp \ | |
-p 10001:10001/udp \ | |
-e TZ='America/Chicago' \ | |
-v ~/unifi:/unifi \ | |
--name unifi \ | |
jacobalberty/unifi:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment