Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reklatsmasters/get-docker-socket

A cross-platform way to get path to docker socket
https://github.com/reklatsmasters/get-docker-socket

cross-platform devops devops-tools docker js named-pipes node socket tools unix-socket

Last synced: 24 days ago
JSON representation

A cross-platform way to get path to docker socket

Awesome Lists containing this project

README

        

## get-docker-socket [![Build Status](https://travis-ci.org/ReklatsMasters/get-docker-socket.svg?branch=master)](https://travis-ci.org/ReklatsMasters/get-docker-socket) [![npm](https://img.shields.io/npm/v/get-docker-socket.svg)](https://npmjs.org/package/get-docker-socket) [![license](https://img.shields.io/npm/l/get-docker-socket.svg)](https://npmjs.org/package/get-docker-socket) [![downloads](https://img.shields.io/npm/dm/get-docker-socket.svg)](https://npmjs.org/package/get-docker-socket)
A cross-platform way to get path to docker socket

## Example

```js
const socketPath = require('get-docker-socket')()
const Docker = require('dockerode')

const docker = new Docker({socketPath})

docker.listImages(/*...*/)
```

## License

MIT, 2017 (c) Dmitry Tsvettsikh