Update main.rs

pull/9/head
hydeonz 2024-09-03 17:34:12 +03:00 committed by GitHub
parent b19b99fcd6
commit dbc0e73cec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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
},
}
}
}