• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 25154936592 / 1
65%
main: 65%

Build:
DEFAULT BRANCH: main
Ran 30 Apr 2026 08:21AM UTC
Files 708
Run time 18s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Apr 2026 08:15AM UTC coverage: 64.279% (+0.02%) from 64.255%
25154936592.1

push

github

web-flow
Auto-detect Docker Desktop socket on Linux (#5122)

* Auto-detect Docker Desktop socket on Linux

Docker Desktop on Linux exposes its Engine socket at
$HOME/.docker/desktop/docker.sock and registers a desktop-linux
Docker context pointing there. ToolHive runtime auto-detection
only probed /var/run/docker.sock and macOS-specific paths, so on
a Linux host with only Docker Desktop installed IsAvailable
returned false and CheckRuntimeAvailable failed with "no
container runtime available" -- even though docker ps in the
same shell worked fine via the active context.

Add the Linux Docker Desktop socket to the discovery list so
auto-detection finds it without requiring TOOLHIVE_DOCKER_SOCKET.
Wrap the system socket path in an unexported package variable
so tests can redirect the system probe to a sandbox path.

* Add unit tests for Docker socket discovery

Cover three cases for Docker socket auto-detection:

- discovery of the new Docker Desktop on Linux socket at
  $HOME/.docker/desktop/docker.sock when no system socket
  is present;
- TOOLHIVE_DOCKER_SOCKET env override wins over filesystem
  discovery;
- ErrRuntimeNotFound when no socket is reachable.

The tests redirect the system socket probe via the unexported
systemDockerSocketPath variable so they stay hermetic on
machines that already have /var/run/docker.sock.

* Document Docker Desktop on Linux socket path

Match the documented runtime discovery order to the code by
adding the Linux Docker Desktop socket path next to the
existing macOS-specific entries in
docs/arch/01-deployment-modes.md.

61152 of 95135 relevant lines covered (64.28%)

59.36 hits per line

Source Files on job 25154936592.1
  • Tree
  • List 708
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25154936592
  • 227045c7 on github
  • Prev Job for on main (#25154213341.1)
  • Next Job for on main (#25157733609.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc