don't include stderr in moby exec output

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2021-04-09 15:09:48 +02:00
parent 76cd14a85d
commit 4916b36b99
No known key found for this signature in database
GPG key ID: 9858809D6F8F6E7E
2 changed files with 4 additions and 4 deletions

View file

@ -136,5 +136,6 @@ func ExecSilent(ctx context.Context, args ...string) ([]byte, error) {
args = os.Args[1:]
}
cmd := exec.CommandContext(ctx, ComDockerCli, args...)
return cmd.CombinedOutput()
cmd.Stderr = os.Stderr
return cmd.Output()
}