Docker rm delayed for log ingestion

We use executor docker for our runners.

We use Datadog to index containers log.

But we miss logs.

I things it’s because the container are remove to quickly after ending.
Is it a solution to delay docker removing after ending ?