Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use Windows named pipe
  • Loading branch information
StefanScherer committed Sep 24, 2017
commit ca280c1e0a791826482a11f887da61e797d67b8f
9 changes: 5 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ if (process.env.DOCKER_HOST) {

if (docker_host) {
options.host = docker_host;
options.port = docker_port;
}
else {
options.socketPath = '/var/run/docker.sock';
options.port = docker_port;
} else if (process.platform === 'win32') {
options.socketPath = '\\\\.\\pipe\\docker_engine';
} else {
options.socketPath = '/var/run/docker.sock';
}

var req = request(options, (res) => {
Expand Down