get-docker-socket

1.0.0 • Public • Published

get-docker-socket Build Status npm license downloads

A cross-platform way to get path to docker socket

Example

const socketPath = require('get-docker-socket')()
const Docker = require('dockerode')
 
const docker = new Docker({socketPath})
 
docker.listImages(/*...*/)

License

MIT, 2017 (c) Dmitry Tsvettsikh

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i get-docker-socket

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • reklatsmasters