Skip to content

driver: only mount WSL libraries for local docker-container endpoints#3784

Merged
tonistiigi merged 1 commit intodocker:masterfrom
crazy-max:fix-container-wsl-local
Apr 8, 2026
Merged

driver: only mount WSL libraries for local docker-container endpoints#3784
tonistiigi merged 1 commit intodocker:masterfrom
crazy-max:fix-container-wsl-local

Conversation

@crazy-max
Copy link
Copy Markdown
Member

fixes #3783

This change stops docker-container builders from mounting /usr/lib/wsl on remote nodes. WSL library mounts now only apply when the node endpoint resolves to a local Docker socket.

The docker-container driver now decides whether the WSL bind mount is allowed from the node's actual EndpointAddr instead of the current CLI context.

#3320 intended this mount to be limited to local Docker contexts so CDI generation would work on WSL without leaking a host-specific mount into remote builders. In multi-node builders, the previous logic used CurrentContext() for every node, which caused remote contexts to inherit the /usr/lib/wsl bind mount and fail during bootstrap.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@tonistiigi tonistiigi merged commit c421c14 into docker:master Apr 8, 2026
161 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating a new builder pointing to a ARM64 host from a AMD64 host in WSL error

2 participants