fix: silence logs

This commit is contained in:
Aravinth Manivannan 2023-10-04 23:04:18 +05:30
parent 9461b858fb
commit b5682ccfae
Signed by: realaravinth
GPG Key ID: F8F50389936984FF
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
use std::collections::HashMap;
use std::process::Command;
use std::process::{Command, Stdio};
#[derive(Default, Clone, Eq, PartialEq)]
pub struct Docker;
@ -74,6 +74,8 @@ impl DockerLike for Docker {
env_args.push(img.to_string());
let mut child = Command::new("docker")
.args(&env_args)
.stdout(Stdio::null())
.stderr(Stdio::null())
.spawn()
.expect("unable to obtain Docker version");
child.wait().unwrap();