Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/apocas/docker-modem
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Oct 7, 2019
2 parents 2a3899a + 70bbfcc commit d75a96a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/modem.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ var defaultOpts = function() {
// Strip off unix://, fall back to default of /var/run/docker.sock if
// unix:// was passed without a path
opts.socketPath = process.env.DOCKER_HOST.substring(7) || '/var/run/docker.sock';
} else if (process.env.DOCKER_HOST.indexOf('npipe://') === 0) {
// Strip off npipe://, fall back to default of //./pipe/docker_engine if
// npipe:// was passed without a path
opts.socketPath = process.env.DOCKER_HOST.substring(8) || '//./pipe/docker_engine';
} else {
var hostStr = process.env.DOCKER_HOST;
if(hostStr.indexOf('\/\/') < 0) {
Expand Down

0 comments on commit d75a96a

Please sign in to comment.