Pass command being executed when retrieving DOCKER_ARGS via pluginhook. Closes #829

This commit is contained in:
Jose Diaz-Gonzalez
2015-01-01 15:14:47 -05:00
parent 1d6d5755d4
commit 93a01fb763
2 changed files with 2 additions and 2 deletions

2
dokku
View File

@@ -81,7 +81,7 @@ case "$1" in
fi
# start the app
DOCKER_ARGS=$(: | pluginhook docker-args $APP)
DOCKER_ARGS=$(: | pluginhook docker-args $APP deploy)
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-9.]*://')

View File

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