docker-host
Tiny module that parses docker remote host (usually $DOCKER_HOST
)
npm install docker-host
Usage
var host =var h =console // will print something like {socketPath:'/var/run/docker.sock'}// if $DOCKER_HOST is set that will be used as foundation as wellvar h =console // will print {host:'localhost', port:2375}
License
MIT