Skip to content

Add DOCKER_FLAGS support for passing extra flags to the emulator container#248

Draft
anisaoshafi wants to merge 2 commits into
mainfrom
devx-852-lstk-ignores-docker_flags-for-emulators
Draft

Add DOCKER_FLAGS support for passing extra flags to the emulator container#248
anisaoshafi wants to merge 2 commits into
mainfrom
devx-852-lstk-ignores-docker_flags-for-emulators

Conversation

@anisaoshafi
Copy link
Copy Markdown
Collaborator

@anisaoshafi anisaoshafi commented May 15, 2026

Problem

lstk had no way to pass arbitrary Docker flags when starting an emulator if you needed to inject environment variables (-e SERVICES=s3,sqs), or extra volume mounts.

The root cause was structural: runtime.ContainerConfig only modeled the options lstk explicitly needed (port bindings, known env vars, the volume mount for persistence).

Fix

Added support for a DOCKER_FLAGS environment variable and a docker_flags field in the [[containers]] config.toml block.
Both accept a raw docker-run-style string (e.g. "-e SERVICES=s3,sqs -v /tmp/data:/data").
The two sources are merged: env var flags apply globally across all containers, config flags apply per-container.

Supported flags: -e/--env, -v/--volume.

@anisaoshafi anisaoshafi force-pushed the devx-852-lstk-ignores-docker_flags-for-emulators branch 3 times, most recently from 955e9e7 to 137a692 Compare May 15, 2026 12:49
@anisaoshafi anisaoshafi force-pushed the devx-852-lstk-ignores-docker_flags-for-emulators branch 3 times, most recently from 7066166 to e44cfd4 Compare May 15, 2026 16:44
@anisaoshafi anisaoshafi force-pushed the devx-852-lstk-ignores-docker_flags-for-emulators branch from e44cfd4 to 8b87446 Compare May 15, 2026 16:51
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.

1 participant