Skip to content

Fail fast on unsupported multi-container configs#356

Open
anisaoshafi wants to merge 2 commits into
mainfrom
devx-952-fail-fast-on-unsupported-multi-container-configs-0510
Open

Fail fast on unsupported multi-container configs#356
anisaoshafi wants to merge 2 commits into
mainfrom
devx-952-fail-fast-on-unsupported-multi-container-configs-0510

Conversation

@anisaoshafi

@anisaoshafi anisaoshafi commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Configs with more than one enabled [[containers]] block are unsupported (e.g. AWS + Snowflake), but previously passed validation and let start proceed only to fail later during startup on container-name conflicts or shared port collisions, sometimes after image pulls had already begun (partial startup + confusing error).

This PR makes it fail fast.

image

Configs with more than one enabled [[containers]] block are unsupported
(e.g. AWS + Snowflake), but previously passed validation and let start
proceed, only to fail later during startup on container-name conflicts or
shared port collisions — sometimes after image pulls had begun, leaving a
partial startup and a confusing error.

Guard against this at the top of container.Start, before any health/auth
checks or image pulls, so startup stops early with a clear message. The
check lives on the start path rather than config.Get() on purpose:
recovery/reporting commands (stop, status, logout) must still enumerate
multiple running emulators. This replaces the previous soft warning that
only covered duplicate emulator types.

Generated with [Linear](https://linear.app/localstack/issue/DEVX-952/fail-fast-on-unsupported-multi-container-configs#agent-session-1dac3d90)

Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
@anisaoshafi anisaoshafi added semver: patch docs: skip Pull request does not require documentation changes labels Jul 2, 2026
@anisaoshafi anisaoshafi marked this pull request as ready for review July 3, 2026 14:50
@anisaoshafi anisaoshafi requested a review from a team as a code owner July 3, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes semver: patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant