diff --git a/shared/build/build.go b/shared/build/build.go index cb2f60fa6..0a0265ab4 100644 --- a/shared/build/build.go +++ b/shared/build/build.go @@ -322,6 +322,7 @@ func (b *Builder) run() error { AttachStdin: false, AttachStdout: true, AttachStderr: true, + Tty: script.DockerTty(b.Build.Docker), } // configure if Docker should run in privileged mode diff --git a/shared/build/script/docker.go b/shared/build/script/docker.go index c06e9e4d2..a61967922 100644 --- a/shared/build/script/docker.go +++ b/shared/build/script/docker.go @@ -43,7 +43,7 @@ func DockerHostname(d *Docker) string { // DockerTty returns true if the build // should allocate a pseudo tty -func DockerTty(d *Docker) string { +func DockerTty(d *Docker) bool { if d == nil { return false }