feat: add DYNO environment variable to run containers. Closes #2837

This commit is contained in:
Jose Diaz-Gonzalez
2017-07-17 03:53:23 -06:00
parent 2169fb3859
commit 13ff7f7b96

View File

@@ -22,7 +22,7 @@ dokku_run_cmd() {
local DOCKER_ARGS=$(: | plugn trigger docker-args-run "$APP" "$IMAGE_TAG")
[[ "$DOKKU_TRACE" ]] && local DOCKER_ARGS+=" -e TRACE=true "
local DOKKU_RUN_OPTS=""
local DOKKU_RUN_OPTS=" -e DYNO=run.$RANDOM"
if [[ "$DOKKU_RM_CONTAINER" ]]; then
DOKKU_RUN_OPTS+=" --rm"
elif [[ "$DOKKU_DETACH_CONTAINER" ]]; then