File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -266,18 +266,24 @@ export default abstract class BaseCmd extends Command {
266
266
protected getProjectRunningContainersCeDev ( ) : Array < string > {
267
267
const running = this . getProjectRunningContainers ( ) ;
268
268
const ceDev = [ ] ;
269
- const regex = / ^ c o d e e n i g m a \/ .* / gm;
269
+ const regex = / c e - d e v : .* / gm;
270
270
for ( const containerName of running ) {
271
271
const image = execSync ( this . dockerBin +
272
272
' inspect ' +
273
273
containerName +
274
274
' --format={{.Config.Image}}' )
275
275
. toString ( )
276
276
. trim ( ) ;
277
- if ( regex . test ( image ) ) {
277
+ const labels = execSync (
278
+ this . dockerBin + ' inspect ' + image + ' --format={{.Config.Labels}}' )
279
+ . toString ( )
280
+ . trim ( )
281
+
282
+ if ( regex . test ( labels ) ) {
278
283
ceDev . push ( containerName ) ;
279
284
}
280
285
}
286
+
281
287
return ceDev ;
282
288
}
283
289
You can’t perform that action at this time.
0 commit comments