Remove newly introduced '0.0.0.0:' from docker port

This commit is contained in:
rhy-jot
2013-10-30 17:02:36 -07:00
parent fc11d5b8e9
commit 3321186ffe

2
dokku
View File

@@ -50,7 +50,7 @@ case "$1" in
# First deploy
id=$(docker run -d -p 5000 -e PORT=5000 $IMAGE /bin/bash -c "/start web")
echo $id > "$DOKKU_ROOT/$APP/CONTAINER"
port=$(docker port $id 5000)
port=$(docker port $id 5000 | sed 's/0.0.0.0://')
echo $port > "$DOKKU_ROOT/$APP/PORT"
echo "http://$(< "$DOKKU_ROOT/HOSTNAME"):$port" > "$DOKKU_ROOT/$APP/URL"
else