diff --git a/plugins/ps/commands b/plugins/ps/commands index 9e8a2383006..f6e7e6480f7 100755 --- a/plugins/ps/commands +++ b/plugins/ps/commands @@ -12,7 +12,8 @@ case "$1" in ! (is_deployed $APP) && echo "App $APP has not been deployed" && exit 0 for CID in $CONTAINER_IDS; do - docker exec -ti "$CID" /bin/sh -c "ps auxwww" + has_tty && DOKKU_RUN_OPTS="-i -t" + docker exec $DOKKU_RUN_OPTS $CID /bin/sh -c "ps auxwww" done ;;