Pipe no op into docker-args plugin-hooks to avoid problems when running over ssh w/o a pty.

This commit is contained in:
Dyson Simmons
2013-12-01 00:14:01 +11:00
parent aaa4f0fade
commit 1e76aba0af
2 changed files with 2 additions and 2 deletions

2
dokku
View File

@@ -63,7 +63,7 @@ case "$1" in
fi
# 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")
echo $id > "$DOKKU_ROOT/$APP/CONTAINER"
port=$(docker port $id 5000 | sed 's/0.0.0.0://')

View File

@@ -59,7 +59,7 @@ case "$1" in
fi
shift 2
DOCKER_ARGS=$(pluginhook docker-args $APP)
DOCKER_ARGS=$(: | pluginhook docker-args $APP)
docker run -i -t $DOCKER_ARGS $IMAGE /exec "$@"
;;