Docker Init
Init docker with dockerode parameters.
Install
npm i docker-init --save
How to use?
docker init
takes options with 3 properties:
- socketPath -
/var/run/docker.sock
by default - host - host of docker machine, could be used
$DOCKER_HOST
or any host in format<ip>:<port>
, e.g.192.168.99.100:2376
. - certPath - path to read certificates (
key.pem
,ca.pem
,cert.pem
) from, could be used$DOCKER_CERT_PATH
.
let dockerInit = ; // on local linuxdocker = ; // on mac os or windows, with default docker installdocker = ; // now you can use Dockerode API
License
MIT