bitstream/docker/dockerClient.js

11 lines
257 B
JavaScript

// dockerClient.js
const Docker = require('dockerode');
// For Linux/Mac: socketPath, for Windows: host/port
const docker = new Docker({
socketPath: '/var/run/docker.sock'
// For Windows: { host: '127.0.0.1', port: 2375 }
});
module.exports = docker;