GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add `stellar container use` to set the default engine by fnando · Pull Request #2647 · stellar/stellar-cli

Conversation

@fnando

@fnando fnando commented Jul 16, 2026

Copy link
Copy Markdown
Member

What

Adds two subcommands for managing a persistent default container engine:

  • stellar container use <engine> — writes the chosen engine (docker or apple-container) to the global config.toml under defaults.container_engine.
  • stellar container unset — removes that persisted default.

On startup the persisted default is loaded into STELLAR_CONTAINER_ENGINE via set_env_from_config, so it feeds the existing engine resolution without a new code path. An explicit --engine flag or an already-set STELLAR_CONTAINER_ENGINE still takes precedence, and container use warns when the env var is set since it would override the value being saved.

Config plumbing: a container_engine field on Defaults, set_container_engine/unset_container_engine on Config, and write_default_container_engine/unset_default_container_engine on the locator.

Why

Builds on the --engine flag (base branch) so users no longer have to pass --engine on every stellar container invocation. Setting the engine once persists it across commands, matching how other stellar defaults (network, identity) already work.

Known limitations

N/A

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-project-automation github-project-automation Bot added this to DevX Jul 16, 2026
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Jul 16, 2026
@fnando
fnando requested review from leighmcculloch and mootz12 July 16, 2026 15:12
Base automatically changed from container-engine-selection to main July 16, 2026 15:14
@fnando
Add stellar container use to set the default engine.
a3e2a42
@fnando
fnando force-pushed the container-use branch from 3f4cec6 to a3e2a42 Compare July 16, 2026 15:23
@fnando
fnando enabled auto-merge (squash) July 16, 2026 15:24
@fnando fnando self-assigned this Jul 16, 2026
@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX Jul 16, 2026
leighmcculloch
leighmcculloch approved these changes Jul 16, 2026
View reviewed changes
@fnando
fnando merged commit 90a2ffb into main Jul 16, 2026
229 of 230 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@fnando
fnando deleted the container-use branch July 16, 2026 22:18
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in DevX Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@leighmcculloch leighmcculloch leighmcculloch approved these changes
@mootz12 mootz12 Awaiting requested review from mootz12

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@fnando fnando

Labels

None yet

Projects

DevX
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@fnando @leighmcculloch
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.