fix: silence logs
This commit is contained in:
parent
9461b858fb
commit
b5682ccfae
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::process::Command;
|
use std::process::{Command, Stdio};
|
||||||
|
|
||||||
#[derive(Default, Clone, Eq, PartialEq)]
|
#[derive(Default, Clone, Eq, PartialEq)]
|
||||||
pub struct Docker;
|
pub struct Docker;
|
||||||
|
@ -74,6 +74,8 @@ impl DockerLike for Docker {
|
||||||
env_args.push(img.to_string());
|
env_args.push(img.to_string());
|
||||||
let mut child = Command::new("docker")
|
let mut child = Command::new("docker")
|
||||||
.args(&env_args)
|
.args(&env_args)
|
||||||
|
.stdout(Stdio::null())
|
||||||
|
.stderr(Stdio::null())
|
||||||
.spawn()
|
.spawn()
|
||||||
.expect("unable to obtain Docker version");
|
.expect("unable to obtain Docker version");
|
||||||
child.wait().unwrap();
|
child.wait().unwrap();
|
||||||
|
|
Loading…
Reference in a new issue