docker / libcompose

*Unmaintained/Deprecated* An experimental go library providing Compose-like functionality
https://godoc.org/github.com/docker/libcompose
Apache License 2.0
585 stars 191 forks source link

Add run option DisableTty #485

Closed a-bouts closed 6 years ago

a-bouts commented 6 years ago

When calling Run method on a project inside a docker container, it fails with "inappropriate ioctl for device".

os.Stdin is not a terminal, so term.SetRawTerminal fails. It also fails later because of configOverride.Tty set to true.

I added DisableTty option in order to maitain backward compatibility, set Tty and StdinOpen from this option in the service.Run method and disabled the use of a terminal in the container.Run method when tty is disabled