docker-host

Tiny module that converts a host to docker (usually $DOCKER_HOST) to a standard http url

MIT 8 个版本
安装
npm install docker-host
yarn add docker-host
pnpm add docker-host
bun add docker-host
README

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

版本列表
3.1.0 2015-10-16
3.0.0 2014-07-08
2.3.1 2014-07-08
2.3.0 2014-07-08
2.2.0 2014-07-06
2.1.0 2014-07-06
2.0.0 2014-06-13
1.0.0 2014-06-10