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:
parent
0b1fbd32c0
commit
baa79adaa7
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user