Skip to content

Commit

Permalink
Fix docker 409 warning (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed Jun 24, 2024
1 parent 33f7a71 commit 40fde53
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plane/src/drone/runtime/docker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,16 @@ impl Runtime for DockerRuntime {
};

match result {
Err(bollard::errors::Error::DockerResponseServerError {
status_code: 409, ..
}) => {
tracing::warn!(
%container_id,
%backend_id,
"Container could not be terminated, because it already was."
);
Ok(false)
}
Err(bollard::errors::Error::DockerResponseServerError {
status_code: 404, ..
}) => {
Expand Down

0 comments on commit 40fde53

Please sign in to comment.