File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,16 @@ let client: Docker | null = null;
8787function candidateSockets ( override : string ) : string [ ] {
8888 if ( override ) return [ override ] ;
8989 if ( process . platform === 'win32' ) {
90- return [ '//./pipe/docker_engine' ] ;
90+ // Docker Desktop on Windows exposes different named pipes depending on
91+ // which context is active. `desktop-linux` (the default since 4.x) uses
92+ // `dockerDesktopLinuxEngine`; the legacy `default` context uses
93+ // `docker_engine`; Windows-containers mode uses `dockerDesktopWindowsEngine`.
94+ // Probe all three so a freshly-installed Docker Desktop works out of the box.
95+ return [
96+ '//./pipe/dockerDesktopLinuxEngine' ,
97+ '//./pipe/docker_engine' ,
98+ '//./pipe/dockerDesktopWindowsEngine' ,
99+ ] ;
91100 }
92101 return [
93102 '/var/run/docker.sock' ,
You can’t perform that action at this time.
0 commit comments