Skip to content

Commit 12ee93c

Browse files
committed
Include stopped-but-interceptable containers in attach metadata
This seems like it might be useful in some workflows - you might have containers you're interested in stopped, and being able to restart them straight from that state into interception is very neat.
1 parent f191aa0 commit 12ee93c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/interceptors/docker/docker-interceptor.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ export class DockerContainerInterceptor implements Interceptor {
3838
// We cache the containers query whilst it's active, because this gets hit a lot,
3939
// usually directly in parallel by getMetadata and isActive, and this ensures
4040
// that concurrent calls all just run one lookup and use the same result.
41-
this._containersPromise = this.getDocker().listContainers()
42-
.finally(() => { this._containersPromise = undefined; });
41+
this._containersPromise = this.getDocker().listContainers({
42+
all: true
43+
}).finally(() => { this._containersPromise = undefined; });
4344
}
4445
return this._containersPromise;
4546
}

0 commit comments

Comments
 (0)