Skip to content

Commit

Permalink
Merge pull request #130 from rossf7/fix/containerd-prefix
Browse files Browse the repository at this point in the history
fix: support k8s pods using containerd
  • Loading branch information
bpetit authored Oct 26, 2021
2 parents 81846a2 + 60c1912 commit 685e63e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sensors/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ impl ProcessTracker {
Some(id) => {
if let Some(final_id) = id.strip_prefix("docker://") {
final_id == container_id
} else if let Some(final_id) =
id.strip_prefix("containerd://")
{
final_id == container_id
} else {
false
}
Expand Down

0 comments on commit 685e63e

Please sign in to comment.