Skip to content

feat: new tested created - #138

Merged
edsonwade merged 1 commit into
mainfrom
develop
Jul 31, 2026
Merged

edsonwade merged 1 commit into
mainfrom
develop

Conversation

@edsonwade

@edsonwade edsonwade commented Jul 31, 2026 •

Copy link
Copy Markdown
Owner
  1. Implementation summary
    The docker group change was fine and already active — it was a red herring. The real cause: your WSL ~/.docker/config.json had "currentContext": "desktop-linux", whose endpoint is npipe:////./pipe/dockerDesktopLinuxEngine. npipe:// is a Windows named pipe; the Linux docker CLI has no npipe transport, so it aborts while building the connection — hence a protocol error rather than a permission or "daemon not running" error.

Fix applied (one command, reversible):
docker context use default # → unix:///var/run/docker.sock
Key takeaway for next time: protocol not available is never a permissions problem. Permissions give you permission denied ... /var/run/docker.sock. If the message mentions protocol, check docker context ls / $DOCKER_HOST — not usermod.

  1. Files changed
    .claude/memory/reference_wsl2_docker_context_npipe.md — new memory (root cause, evidence, fix, recurrence)
    .claude/memory/MEMORY.md — index line under Reference / environment
    No project/source code touched.

  2. Did it reproduce before the fix?
    Yes, deterministically. docker ps -a → Failed to initialize: protocol not available. After docker context use default, the same command returned the container table with no error. I also proved the daemon itself was healthy the whole time: DOCKER_HOST=unix:///var/run/docker.sock docker version → Server 29.1.3.

  3. Remaining risks
    It can come back. If you launch Docker Desktop on Windows, it may rewrite currentContext back to desktop-linux in your WSL config. Same one-line fix. Since you chose WSL2 native precisely because it's lighter, default is the correct context for this project — permanently.
    docker ps -a shows zero containers — your stack simply isn't up yet. That's separate from this bug; per your rules I did not start anything. When you want it: docker-compose up -d from /mnt/c/Users/HP/.claude/projects/e-commerce-microservice.
    Not verified: nothing else was tested. No Maven/test run happened in this session, so the state of mvn verify -pl order-service,product-service (still open per project memory) is unchanged and unverified.

@edsonwade edsonwade self-assigned this Jul 31, 2026
@edsonwade edsonwade added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers dependencies Pull requests that update a dependency file labels Jul 31, 2026
@edsonwade
edsonwade merged commit 1fa8544 into main Jul 31, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant