Commit 24908495 authored by MrMan's avatar MrMan

only use docker kill no stop

parent 972f524d
Pipeline #47784708 passed with stage
in 10 minutes and 53 seconds
......@@ -89,18 +89,7 @@ impl DockerizedPostmgr {
impl Drop for DockerizedPostmgr {
fn drop(&mut self) {
// TODO: Kill the child process docker container
// Stop the process
Command::new(DOCKER_BINARY)
.arg("stop")
.arg(&self.container_name)
.stdin(Stdio::null())
.stdout(Stdio::null()) // NOTE: comment this out to get docker stop output
.output()
.expect("failed to start docker stop command");
// Kill the process
// Kill the docker process
Command::new(DOCKER_BINARY)
.arg("kill")
.arg(&self.container_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment