Wondering what’s next for npm?Check out our public roadmap! »

docker-host

3.1.0 • Public • Published

docker-host

Tiny module that parses docker remote host (usually $DOCKER_HOST)

npm install docker-host

build status

Usage

var host = require('docker-host')
 
var h = host()
console.log(h) // will print something like {socketPath:'/var/run/docker.sock'}
               // if $DOCKER_HOST is set that will be used as foundation as well
 
var h = host('tcp://:2375')
console.log(h) // will print {host:'localhost', port:2375}

License

MIT

Install

npm i docker-host

DownloadsWeekly Downloads

487

Version

3.1.0

License

MIT

Last publish

Collaborators

  • avatar