Fixed port removal when docker is start with --ip with an IP other than 0.0.0.0

This commit is contained in:
Ludovic Perrine
2014-07-24 17:55:35 +02:00
committed by Jose Diaz-Gonzalez
parent 0e590796c0
commit 4cea884f16

2
dokku
View File

@@ -64,7 +64,7 @@ case "$1" in
# start the app
DOCKER_ARGS=$(: | pluginhook docker-args $APP)
id=$(docker run -d -p 5000 -e PORT=5000 $DOCKER_ARGS $IMAGE /bin/bash -c "/start web")
port=$(docker port $id 5000 | sed 's/0.0.0.0://')
port=$(docker port $id 5000 | sed 's/[0-9.]*://')
# if we can't post-deploy successfully, kill new container
function kill_new {