We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f8472f commit ca280c1Copy full SHA for ca280c1
server.js
@@ -78,10 +78,11 @@ if (process.env.DOCKER_HOST) {
78
79
if (docker_host) {
80
options.host = docker_host;
81
- options.port = docker_port;
82
- }
83
- else {
84
- options.socketPath = '/var/run/docker.sock';
+ options.port = docker_port;
+ } else if (process.platform === 'win32') {
+ options.socketPath = '\\\\.\\pipe\\docker_engine';
+ } else {
85
+ options.socketPath = '/var/run/docker.sock';
86
}
87
88
var req = request(options, (res) => {
0 commit comments