Repository navigation
Conversation
shiju-nv
requested review from
a team,
derekwaynecarr,
mrunalp and
sjenning
as code owners
October 4, 2026 12:27
drew
requested changes
Oct 5, 2026
shiju-nv
force-pushed
the
fix/vm-driver-docker-desktop-socket-4155
branch
from
October 22, 2026 18:59
8fc1396 to
3080769
Compare
|
Label |
|
This pull request has had no activity for 14 days and is now marked stale. |
A VM sandbox built from a local tag could fall back to the registry when Docker Desktop exposed only its per-user socket. Share Docker's existing socket discovery with the VM driver through openshell-container-runtime. Keep the default Unix connection first, then try discovered Docker and Podman sockets in order. Run the blocking probes off the async worker that resolves the image. Refs ai-openshell#4155 Signed-off-by: Shiju <shiju@nvidia.com>
shiju-nv
force-pushed
the
fix/vm-driver-docker-desktop-socket-4155
branch
from
December 1, 2026 08:05
3080769 to
05d8108
Compare
elezar
requested changes
Dec 1, 2026
elezar
left a comment
Contributor
There was a problem hiding this comment.
Thanks, the shared docker_socket module in openshell-container-runtime also resolves the earlier dependency concern: the VM driver no longer depends on the Docker driver.
One change I'd like before merge:
connect_engine_socket(driver.rs:5876) usesspawn_blocking(...).await.ok()??, so a panicked or cancelled discovery task becomesNone. The user would then see a registry-pull attempt, or "no container engine available" for locally built tags, with no hint of the cause. Please log the join error before returningNone.
Nits, not blocking:
- Step 1 (
connect_with_local_defaults) and step 2 (detect_socket) can probe the same dead path, for example whenDOCKER_HOSTisunix:///var/run/docker.sock. The cost is one extra local failure before the Podman fallback. Keeping the Bollard default is right, sincedetect_socketonly handlesunix://hosts. - A short comment on why the tests use
tempdir_in("/tmp")(Unix socket path length) would help. - Discovery covers only the well-known paths, so Colima, Rancher Desktop, and custom Docker contexts still need
DOCKER_HOST. That's fine for this fix, but worth a follow-up issue.
Log the engine and Tokio join error when a socket discovery task fails. Keep trying other image sources and cover a panicking Docker detector with a working Podman socket. Document how to select a custom Unix socket in the gateway environment. Signed-off-by: Shiju <shiju@nvidia.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The MicroVM driver can now find locally built images when Docker Desktop exposes only
~/.docker/run/docker.sockon macOS. Previously, creating a sandbox from a local tag could fall through to a registry pull and produce an authorization error.Related Issue
Refs #4155. This fixes local image discovery. The issue also describes separate improvements to registry errors and
openshell doctor check.Changes
openshell-container-runtime. It checks a UnixDOCKER_HOST,/var/run/docker.sock,$HOME/.docker/run/docker.sock, and$XDG_RUNTIME_DIR/docker.sock, in order. The Docker driver keeps its publicdetect_socketfunction.Testing
DOCKER_HOSTwhen the configuration leavessocket_pathunset.test:e2elabel.Checklist