Update main.rs
parent
b19b99fcd6
commit
dbc0e73cec
|
|
@ -16,7 +16,7 @@ use structs::*;
|
|||
use config::*;
|
||||
use utils::*;
|
||||
|
||||
static GET_ID_CMD : &'static str = "cat /proc/self/mountinfo | grep '/docker/containers/' | head -1 | awk -F '/' '{print $5}'";
|
||||
static GET_ID_CMD : &'static str = "cat /proc/self/mountinfo | grep '/docker/containers/' | head -1 | awk -F '/' '{print $6}'";
|
||||
|
||||
|
||||
#[tokio::main(flavor = "multi_thread")]
|
||||
|
|
@ -89,4 +89,4 @@ fn get_container_id() -> Option<String> {
|
|||
None
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue