microsoft / microsoft/WSL

Map unix socket to npipe on Windows 10

Open
#8,788 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Is your feature request related to a problem? Please describe.
It is not possible to connect docker cli from windows to docker daemon inside wsl linux without tcp and using only standard tools.

Existed solution
Here is an article about custom solution to this problem, but it looks like a hack and it is not reliable
Wsl Interoperability with docker

Describe the solution you'd like
It would be grate if wsl can automatically map unix sock into windows npipe like:
When linux inside wsl creates unix sock - wsl creates npipe with similar name, and bypass data between those.

Describe alternatives you've considered
Add some wsl configuration file where it is possible to define mapping like:
[distribution name]
[unix socket name] (to bypass)
[windows npipe name] (to create when socket with related name is created on linux)
[windows local security group] (that may have full access to created npipe)

I think such feature may allow dipper wsl integration and gives huge variety of solutions for developers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, or entry points are identified in the issue. First investigate how WSL handles Linux Unix sockets and Windows named pipes, then define the mapping and security configuration requirements; done means a reliable socket-to-npipe bridge works without TCP.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
networking, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.