diff --git a/imagebuildah/stage_executor.go b/imagebuildah/stage_executor.go index 1cfd4c56020..191645b891b 100644 --- a/imagebuildah/stage_executor.go +++ b/imagebuildah/stage_executor.go @@ -368,6 +368,7 @@ func (s *StageExecutor) Run(run imagebuilder.Run, config docker.Config) error { Stderr: s.executor.err, Quiet: s.executor.quiet, NamespaceOptions: s.executor.namespaceOptions, + Terminal: buildah.WithoutTerminal, } if config.NetworkDisabled { options.ConfigureNetwork = buildah.NetworkDisabled diff --git a/tests/bud.bats b/tests/bud.bats index ff9db060932..ee70c02ecf0 100644 --- a/tests/bud.bats +++ b/tests/bud.bats @@ -2384,3 +2384,7 @@ EOF run cmp tar1 url1 [[ "$status" -ne 0 ]] } + +@test "bud-terminal" { + run_buildah bud ${TESTSDIR}/bud/terminal +} diff --git a/tests/bud/terminal/Dockerfile b/tests/bud/terminal/Dockerfile new file mode 100644 index 00000000000..cc7cfc9fa98 --- /dev/null +++ b/tests/bud/terminal/Dockerfile @@ -0,0 +1,2 @@ +FROM busybox +RUN ! tty