mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
Disable log driver for docker run
We are generally outputting to stdout pipe which the log driver does not cope with very well; always did this in older builds. Saves another 5% of build time. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
c6ba8ab4eb
commit
b6b7eb08d2
@ -24,7 +24,7 @@ func dockerRun(args ...string) ([]byte, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return []byte{}, errors.New("Docker does not seem to be installed")
|
return []byte{}, errors.New("Docker does not seem to be installed")
|
||||||
}
|
}
|
||||||
args = append([]string{"run", "--rm"}, args...)
|
args = append([]string{"run", "--rm", "--log-driver=none"}, args...)
|
||||||
cmd := exec.Command(docker, args...)
|
cmd := exec.Command(docker, args...)
|
||||||
|
|
||||||
stderrPipe, err := cmd.StderrPipe()
|
stderrPipe, err := cmd.StderrPipe()
|
||||||
|
Loading…
Reference in New Issue
Block a user