We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a93245 commit 24f28ccCopy full SHA for 24f28cc
src/interceptors/docker/docker-commands.ts
@@ -205,7 +205,11 @@ export async function restartAndInjectContainer(
205
const container = docker.getContainer(containerId);
206
const containerDetails = await container.inspect();
207
208
- await container.stop({ t: 1 });
+ await container.stop({ t: 1 }).catch((e) => {
209
+ // Ignore already-stopped errors:
210
+ if (e.message?.includes('container already stopped')) return;
211
+ else throw e;
212
+ });
213
await container.remove().catch((e) => {
214
if ([409, 404, 304].includes(e.statusCode)) {
215
// Generally this means the container was running with --rm, so
0 commit comments