Add stellar container use to set the default engine - #2647
Merged
Conversation
leighmcculloch
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds two subcommands for managing a persistent default container engine:
stellar container use <engine>— writes the chosen engine (dockerorapple-container) to the globalconfig.tomlunderdefaults.container_engine.stellar container unset— removes that persisted default.On startup the persisted default is loaded into
STELLAR_CONTAINER_ENGINEviaset_env_from_config, so it feeds the existing engine resolution without a new code path. An explicit--engineflag or an already-setSTELLAR_CONTAINER_ENGINEstill takes precedence, andcontainer usewarns when the env var is set since it would override the value being saved.Config plumbing: a
container_enginefield onDefaults,set_container_engine/unset_container_engineonConfig, andwrite_default_container_engine/unset_default_container_engineon the locator.Why
Builds on the
--engineflag (base branch) so users no longer have to pass--engineon everystellar containerinvocation. Setting the engine once persists it across commands, matching how otherstellardefaults (network, identity) already work.Known limitations
N/A