diff --git a/src/main.rs b/src/main.rs index 2709728..73a13bb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 { None }, } -} \ No newline at end of file +}