Files
containerd/plugins/server
15849062c9 sys, dialer: support AF_UNIX sockets on Windows
Windows could only listen on and dial named pipes. Also accept AF_UNIX
sockets (Windows 10 1803+, Server 2019+) as unix://<path>, unix:<path>
or a bare path, next to \\.\pipe\<name>, //./pipe/<name> and npipe://.
A scheme is authoritative and named pipes stay the default.

The address is parsed in internal/localaddr, shared by the listener,
the dialer and the debug server's local/TCP check. os.Chmod and
os.Chown do nothing on Windows, so the parent directory is created with
MkdirAllWithACL and the socket gets a protected DACL for Builtin
Administrators and Local System.

Windows has the 108 byte sun_path limit of Linux, but there is hope,
see https://lwn.net/Articles/987098/

Continues https://github.com/containerd/containerd/pull/12921

Co-authored-by: David Scott <dave@recoil.org>
Co-authored-by: Derek McGowan <derek@mcg.dev>
Assisted-by: OpenCode (claude-sonnet-5-5)
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
2026-10-14 01:03:47 +01:00
..
2026-04-21 18:02:40 -07:00