diff --git a/pkg/formula/runner/docker/runner.go b/pkg/formula/runner/docker/runner.go index 06b647654..f3045ec9d 100644 --- a/pkg/formula/runner/docker/runner.go +++ b/pkg/formula/runner/docker/runner.go @@ -90,7 +90,7 @@ func (ru RunManager) runDocker(setup formula.Setup, inputType api.TermInputType, volume := fmt.Sprintf("%s:/app", setup.Pwd) homeDirVolume := fmt.Sprintf("%s/.rit:/root/.rit", ru.homeDir) var args []string - if isatty.IsTerminal(os.Stdout.Fd()) { + if isatty.IsTerminal(os.Stdout.Fd()) && inputType != api.Stdin { args = []string{"run", "--rm", "-it", "--env-file", envFile, "-v", volume, "-v", homeDirVolume, "--name", setup.ContainerId, setup.ContainerId} } else { args = []string{"run", "--rm", "--env-file", envFile, "-v", volume, "-v", homeDirVolume, "--name", setup.ContainerId, setup.ContainerId}