Remove openssh_server container on test exit

This commit is contained in:
Laurent Stacul 2021-02-28 06:50:33 +00:00 committed by Marc Hörsken
parent 718bcb03d2
commit 3709037b26

View File

@ -159,12 +159,14 @@ static int start_openssh_server(char **container_id_out)
const char *container_host_port = openssh_server_port();
if(container_host_port != NULL) {
return run_command(container_id_out,
"docker run -d -p %s:22 libssh2/openssh_server",
"docker run --rm -d -p %s:22 "
"libssh2/openssh_server",
container_host_port);
}
else {
return run_command(container_id_out,
"docker run -d -p 22 libssh2/openssh_server");
"docker run --rm -d -p 22 "
"libssh2/openssh_server");
}
}