From 4e4a81924acb70bd7c968fc455f40a037207fbaf Mon Sep 17 00:00:00 2001 From: Cristopher Pinzon Date: Wed, 24 Jan 2024 13:29:37 -0500 Subject: [PATCH] getContainer considers pro image --- src/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index cfb30f9..7182665 100644 --- a/src/index.js +++ b/src/index.js @@ -413,7 +413,13 @@ class LocalstackPlugin { const getContainer = () => { return exec('docker ps').then( (stdout) => { - const exists = stdout.split('\n').filter((line) => line.indexOf('localstack/localstack') >= 0 || line.indexOf('localstack_localstack') >= 0); + const exists = stdout.split('\n').filter( + (line) => ( + line.indexOf('localstack/localstack') >= 0 || + line.indexOf('localstack/localstack-pro') >= 0 || + line.indexOf('localstack_localstack') >= 0 + ) + ); if (exists.length) { return exists[0].replace('\t', ' ').split(' ')[0]; }