Skip to content

Detect externally-named containers in AWS proxy commmnds#232

Merged
gtsiolis merged 1 commit intomainfrom
des-220-lstk-aws-fails-to-detect-running-localstack
May 7, 2026
Merged

Detect externally-named containers in AWS proxy commmnds#232
gtsiolis merged 1 commit intomainfrom
des-220-lstk-aws-fails-to-detect-running-localstack

Conversation

@gtsiolis
Copy link
Copy Markdown
Member

@gtsiolis gtsiolis commented May 7, 2026

lstk aws ... reported LocalStack AWS Emulator is not running whenever LocalStack was started outside lstk under a non-default container name (e.g. via the docker compose template, where the container is named localstack-main). Other commands — lstk (start), lstk status, lstk stop — already detect the running container in this case, so the inconsistency was confusing.

Root cause: cmd/aws.go only checked Docker for the configured container name (rt.IsRunning(awsContainer.Name())) instead of falling back to image-based discovery the way the other commands do via resolveRunningContainerName.

Closes DES-220

BEFORE AFTER
Screenshot 2026-05-07 at 14 03 04 Screenshot 2026-05-07 at 14 02 49

Copy link
Copy Markdown
Contributor

@anisaoshafi anisaoshafi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks for the prompt fix 👏🏼

@gtsiolis gtsiolis merged commit d1e992e into main May 7, 2026
12 of 13 checks passed
@gtsiolis gtsiolis deleted the des-220-lstk-aws-fails-to-detect-running-localstack branch May 7, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants