From 4cea884f16d3d92ab6e55ec28920cf914e5052ab Mon Sep 17 00:00:00 2001 From: Ludovic Perrine Date: Thu, 24 Jul 2014 17:55:35 +0200 Subject: [PATCH] Fixed port removal when docker is start with --ip with an IP other than 0.0.0.0 --- dokku | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dokku b/dokku index d83698e41..d933b112e 100755 --- a/dokku +++ b/dokku @@ -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 {