Update docker_run.sh

This commit is contained in:
Adam Hill 2017-01-09 12:04:32 -06:00 committed by GitHub
parent 25c3739a0c
commit 8d90235580
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
IMAGE=${1:-'diginc/pi-hole:alpine'}
IP=$(ip route get 8.8.8.8 | awk '{ print $NF; exit }')
IP_LOOKUP="$(ip route get 8.8.8.8 | awk '{ print $NF; exit }')" # May not work for VPN / tun0
IP="${IP:-$IP_LOOKUP}" # use $IP, if set, otherwise IP_LOOKUP
# Default ports + daemonized docker container
docker run -p 53:53/tcp -p 53:53/udp -p 80:80 \