From e349d3858146d96224eeaa6c14590bf10b81b0a8 Mon Sep 17 00:00:00 2001 From: Justin Clark Date: Tue, 25 Aug 2015 17:35:28 -0700 Subject: [PATCH] Fix dokku ps over ssh Resolved the TTY error when connecting over ssh. Updated ps to use has_tty function. --- plugins/ps/commands | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/ps/commands b/plugins/ps/commands index 9e8a23830..f6e7e6480 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 ;;