File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1- FROM rust:1.59 as planner
1+ FROM rust:1.70 as planner
22WORKDIR app
33
44RUN cargo install cargo-chef
@@ -7,15 +7,15 @@ COPY . .
77# Analyze dependencies
88RUN cargo chef prepare --recipe-path recipe.json
99
10- FROM rust:1.59 as cacher
10+ FROM rust:1.70 as cacher
1111WORKDIR app
1212RUN cargo install cargo-chef
1313COPY --from=planner /app/recipe.json recipe.json
1414
1515# Cache dependencies
1616RUN cargo chef cook --release --recipe-path recipe.json
1717
18- FROM rust:1.59 as builder
18+ FROM rust:1.70 as builder
1919WORKDIR app
2020COPY . .
2121
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ impl ProcessTracker {
419419 #[ cfg( feature = "containers" ) ]
420420 let regex_cgroup_docker = Regex :: new ( r"^.*/docker.*$" ) . unwrap ( ) ;
421421 #[ cfg( feature = "containers" ) ]
422- let regex_cgroup_kubernetes = Regex :: new ( r"^ /kubepods.*$" ) . unwrap ( ) ;
422+ let regex_cgroup_kubernetes = Regex :: new ( r"/kubepods.*$" ) . unwrap ( ) ;
423423 #[ cfg( feature = "containers" ) ]
424424 let regex_cgroup_containerd = Regex :: new ( "/system.slice/containerd.service/.*$" ) . unwrap ( ) ;
425425
@@ -587,6 +587,12 @@ impl ProcessTracker {
587587 if container_id. contains ( "cri-containerd" ) {
588588 container_id = container_id. split ( ':' ) . last ( ) . unwrap ( ) . to_string ( ) ;
589589 }
590+ if container_id. starts_with ( "cri-containerd-" ) {
591+ container_id = container_id
592+ . strip_prefix ( "cri-containerd-" )
593+ . unwrap ( )
594+ . to_string ( ) ;
595+ }
590596 Ok ( container_id)
591597 }
592598
You can’t perform that action at this time.
0 commit comments