Skip to content

Instantly share code, notes, and snippets.

@mattconnell
Created February 11, 2018 22:09
Show Gist options
  • Save mattconnell/ee983fb89edd1f151bdef949e1d0780b to your computer and use it in GitHub Desktop.
Save mattconnell/ee983fb89edd1f151bdef949e1d0780b to your computer and use it in GitHub Desktop.
Ubiquiti unifi docker container script
#!/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