Do not use a log driver while running containers

This stops the output from also being copied to logs if the user
has a log driver configured.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2019-06-03 10:44:02 +01:00
parent 845e25a569
commit 213d9b0380
No known key found for this signature in database
GPG Key ID: 609102888A2EE3F9

View File

@ -55,7 +55,7 @@ func dockerRun(input io.Reader, output io.Writer, trust bool, img string, args .
return err
}
args = append([]string{"run", "--network=none", "--rm", "-i", img}, args...)
args = append([]string{"run", "--network=none", "--log-driver=none", "--rm", "-i", img}, args...)
cmd := exec.Command(docker, args...)
cmd.Stdin = input
cmd.Stdout = output