Skip to content

Commit

Permalink
getContainer considers pro image
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzon committed Jan 24, 2024
1 parent b19122f commit 4e4a819
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 4e4a819

Please sign in to comment.