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 authored and Jose Diaz-Gonzalez committed 2014-10-16 00:37:11 -04:00
1 parent 0e590796c0
commit 4cea884f16
1 file changed
+1 -1
+1 -1
View File
@@ -64,7 +64,7 @@ case "$1" in
# start the app # start the app
DOCKER_ARGS=$(: | pluginhook docker-args $APP) DOCKER_ARGS=$(: | pluginhook docker-args $APP)
id=$(docker run -d -p 5000 -e PORT=5000 $DOCKER_ARGS $IMAGE /bin/bash -c "/start web") 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 # if we can't post-deploy successfully, kill new container
function kill_new { function kill_new {