pass -i to docker exec only if a tty