Check if we're on something supporting interactivity for Docker

- On some configurations, like the build server, running Docker with -i
returns this message: the input device is not a TTY. So check whether or
not we're on a TTY before setting -i.

Change-Id: I7df77c425a23b420343f7b76b4e2d2ab2339ca82
1 file changed