diff --git a/pkg/bindings/containers/containers.go b/pkg/bindings/containers/containers.go index 116ed91875..5665db2110 100644 --- a/pkg/bindings/containers/containers.go +++ b/pkg/bindings/containers/containers.go @@ -405,6 +405,9 @@ func Stop(ctx context.Context, nameOrID string, options *StopOptions) error { return err } defer response.Body.Close() + if options.GetIgnore() && response.StatusCode == http.StatusNotFound { + return nil + } return response.Process(nil) }