0
mirror of https://github.com/valentineus/simple-container.git synced 2025-04-28 00:41:24 +03:00

Normalization of the path on the launched OS

This commit is contained in:
Valentin Popov 2017-10-07 01:04:17 +04:00
parent 0b1fbd32c0
commit baa79adaa7

View File

@ -1,3 +1,4 @@
import { normalize } from 'path';
import createDebug from 'debug';
import Docker from 'dockerode';
import { statSync } from 'fs';
@ -183,7 +184,7 @@ export default class Containers {
* @description Getting the system socket.
*/
_getSocket() {
return process.env.DOCKER_SOCKET || '/var/run/docker.sock';
return process.env.DOCKER_SOCKET || normalize('/var/run/docker.sock');
}
/**