Skip to content

Report an actionable error when Docker is unavailable in WSL2 - #3108

Merged
freakboy3742 merged 3 commits into
beeware:mainfrom
Skytuhua:codex/briefcase-wsl-docker-error
Oct 28, 2026
Merged

freakboy3742 merged 3 commits into
beeware:mainfrom
Skytuhua:codex/briefcase-wsl-docker-error

Conversation

@Skytuhua

Copy link
Copy Markdown
Contributor

When Docker reports that it cannot be found inside a WSL 2 distribution, Briefcase currently warns and continues verification. Stop on that specific message and explain that Docker must be available in the distribution, with Docker Desktop WSL integration guidance. Other version-command failures retain the existing warning-and-proceed behavior.

Fixes #1634.

Added a regression for the full WSL error output, including the early stop and guidance, and coverage for absent, unrelated and localized failure output.

Validation on Windows with Python 3.14: the new regression failed before the fix; the final Docker integration suite passed 94 tests with 28 platform skips. All pre-commit hooks passed using Python 3.13 for the tooling environment, and Towncrier validated the committed change note. The initial Python 3.14 pre-commit environment failed while building the existing docformatter dependency. Real WSL/Docker Desktop reproduction and the full cross-platform suite were not run.

PR Checklist:

  • I will abide by the BeeWare Code of Conduct
  • I have read and have followed the CONTRIBUTING.md file
  • This PR was generated or assisted using an AI tool

Assisted-by: OpenAI Codex (GPT-6)

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure why this was submitted in Draft mode, but with a couple of minor tweaks it looks good to me. Thanks!

@freakboy3742
freakboy3742 marked this pull request as ready for review October 28, 2026 02:04
@freakboy3742
freakboy3742 merged commit 0bdaaf5 into beeware:main Oct 28, 2026
109 of 110 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log a different error when Docker is unavailable on WSL2

2 participants