Discover independent running WSL Engines alongside Docker Desktop while grouping endpoint aliases by daemon ID. Share ordinary WSL2 distro selection, exclude Docker-private distros, and require an independent Engine before starting bridge helpers. Import checksum-verified Ubuntu 24.04 directly through WSL when no ordinary distro exists, keep its storage outside Launcher user data, and return the prepared endpoint. Upgrade packages only in newly imported distros and wait for the Desktop Docker API before reporting readiness. Use one Dockerode transport helper for detection and operations so inherited DOCKER_HOST defaults cannot redirect explicit socket endpoints. Include regression tests, adapter contracts, and setup troubleshooting guidance. Validation: 426 automated tests passed, one macOS socket test skipped on Windows. Live Windows checks covered two distinct Engines, preference fallback/recovery, cold WSL reuse without the Windows Docker CLI, host paths containing spaces, and a full Agent Zero UI under WSL. Desktop absence was simulated at installation discovery while retaining real WSL setup and execution.
4.2 KiB
Runtime Troubleshooting
The launcher talks to a Docker-compatible runtime through a local socket. It tries existing runtimes first, then offers automatic setup only when the platform supports it.
When more than one usable local runtime is already available, the setup flow can ask where Agent Zero should run. If there is only one usable runtime, the launcher chooses it automatically.
Quick Checks
Run these from a terminal when the launcher says the runtime is unavailable:
docker info
docker context show
echo "$DOCKER_HOST"
If DOCKER_HOST points at an old or missing socket, unset it and refresh the launcher:
unset DOCKER_HOST
Docker contexts are also reused when they point to a reachable Docker-compatible endpoint. Tools such as OrbStack, Rancher Desktop, Colima, rootless Docker, and Podman can work when their Docker API endpoint is running. Portainer is a management UI for existing runtimes, so the launcher still needs the underlying Docker-compatible endpoint.
Docker Desktop
On macOS or Windows, start Docker Desktop and wait until it reports that the engine is running. Then refresh the launcher.
On Linux, Docker Desktop uses a user socket such as:
~/.docker/desktop/docker.sock
If Docker Desktop is running but the launcher still cannot connect, check that your shell or desktop session is not overriding DOCKER_HOST with a stale value.
Native Docker Engine
Windows without Docker Desktop
Local Setup can reuse an ordinary WSL2 distro or prepare Ubuntu with its own Docker Engine. New distro setup downloads Canonical's Ubuntu 24.04 LTS WSL image, verifies its SHA-256 checksum, and imports it through WSL. It does not need Microsoft Store package staging or an interactive Linux-user setup. Existing Docker Desktop installations still use the normal Start Docker Desktop path.
Imported Ubuntu data lives under %LOCALAPPDATA%\agent-zero\wsl\Ubuntu, outside Launcher settings and cache. Launcher uninstall preserves that Linux runtime and its container data. An existing import folder is never overwritten; if Setup reports that folder already exists, preserve it before resolving the incomplete setup.
Useful Windows checks:
wsl --list --verbose
wsl -d Ubuntu -u root --exec docker info
Docker's private docker-desktop and docker-desktop-data distros are excluded from independent Engine discovery. The Launcher's WSL Docker bridge listens only at 127.0.0.1:23750 while Launcher is running.
Linux
On Debian or Ubuntu, the launcher and installer can use the host package manager to install Docker Engine. If Docker was just installed and the launcher says your user cannot access it yet, log out and back in once so group membership is applied.
Useful Linux checks:
systemctl status docker
docker info
groups
If the daemon is stopped, start it:
sudo systemctl start docker
On systems without systemctl, use the host service manager.
Colima On macOS
When Docker Desktop is not installed, the launcher can use Colima with a dedicated profile named a0. The expected socket is:
~/.colima/a0/docker.sock
Homebrew is not required for this launcher-managed path. When colima, limactl, or docker are missing, the launcher installs its own runtime components under its application data directory and starts Colima in user space. It should not ask for an administrator password just to create the a0 profile.
If Colima was installed outside the launcher, make sure colima, limactl, and docker are available on PATH, then refresh the launcher. To inspect the profile:
colima list
colima start a0 --runtime docker
The launcher uses Colima's runtime defaults. Do not tune CPU, memory, or disk settings just to make the launcher detect the runtime.
Rootless Docker On Linux
Rootless Docker usually exposes a user socket under:
/run/user/<uid>/docker.sock
The launcher checks XDG_RUNTIME_DIR when looking for this socket. If rootless Docker is running but unavailable to the launcher, confirm the socket path:
echo "$XDG_RUNTIME_DIR"
ls -l "$XDG_RUNTIME_DIR/docker.sock"
docker info
Make sure the launcher is started from the same desktop session that owns the rootless Docker socket.