get-docker-socket

v1.0.0
A cross-platform way to get path to docker socket
docker container

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

npm i get-docker-socket

Metadata

  • MIT
  • Whatever
  • Dmitry Tsvettsikh
  • released 2/12/2017

Downloads

Maintainers