|
|
|
@ -531,6 +531,12 @@ fn show_containers(is_show_all: bool) -> Result<()> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn stop_container(containers_id: &str, is_remove: bool) -> Result<()> {
|
|
|
|
|
if containers_id == "all" {
|
|
|
|
|
for container_info in get_all_container_info()?{
|
|
|
|
|
stop_container(container_info.id.as_str(), is_remove)?
|
|
|
|
|
}
|
|
|
|
|
return Ok(())
|
|
|
|
|
}
|
|
|
|
|
for container_id in containers_id.split(" ") {
|
|
|
|
|
if let Ok(container_info) = get_container_info(container_id) {
|
|
|
|
|
let container_work_path = Path::new(WORKSPACE).join("containers").join(container_id);
|
|
|
|
|