mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 01:06:27 +00:00
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:
parent
845e25a569
commit
213d9b0380
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user