mirror of
				https://github.com/valentineus/simple-container.git
				synced 2025-11-04 00:39:44 +03:00 
			
		
		
		
	Normalization of the path on the launched OS
This commit is contained in:
		@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					import { normalize } from 'path';
 | 
				
			||||||
import createDebug from 'debug';
 | 
					import createDebug from 'debug';
 | 
				
			||||||
import Docker from 'dockerode';
 | 
					import Docker from 'dockerode';
 | 
				
			||||||
import { statSync } from 'fs';
 | 
					import { statSync } from 'fs';
 | 
				
			||||||
@@ -183,7 +184,7 @@ export default class Containers {
 | 
				
			|||||||
     * @description Getting the system socket.
 | 
					     * @description Getting the system socket.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    _getSocket() {
 | 
					    _getSocket() {
 | 
				
			||||||
        return process.env.DOCKER_SOCKET || '/var/run/docker.sock';
 | 
					        return process.env.DOCKER_SOCKET || normalize('/var/run/docker.sock');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user