nicholasjackson / minke

Tools for building Microservices with Docker
http://nicholasjackson.github.io/minke
MIT License
45 stars 2 forks source link

'the input device is not a TTY' when executing minke commands on macOS #32

Closed cameroncooke closed 7 years ago

cameroncooke commented 8 years ago

On macOS 10.11 running Docker for Mac 1.12.1 and executing the the command as shown in Quick Start guide:

curl -Ls https://get.minke.rocks | bash -s ' -g minke-generator-go -o $(pwd) -n github.com/nicholasjackson -a myservice'

I get the response:

Running command:  -g minke-generator-go -o $(pwd) -n github.com/nicholasjackson -a myservice
f9dce9132255a8ad06e07475cf9b7cf72a3e87b085ba7830262bb44fac399053
the input device is not a TTY
minke_lyhtw8k2lxsmlx0ktomgrll5noeuhgnf

I've had the same error on iTerm and Terminal, and using the shells ZSH and Bash. I don't think macOS supports TTYs.

Quick Google reveals that this might be an issue with Docker and suggestions are to remove the -i (interactive) option.

algal commented 8 years ago

I'm seeing the same thing on macOS 10.11 and Docker for 1.12.20-rc1-beta27 (build:12496).

nicholasjackson commented 7 years ago

I will take a look at this, it should attempt to detect if TTY is available before setting the option. The problem with removing the interactive terminal mode is that you can no longer quit the session as it is not possible to send Ctrl-C to minke.

nicholasjackson commented 7 years ago

@cameroncooke @algal are you both using version 1.13.16?