mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-26 01:09:15 +01:00
Fix values for `DOCKER_HOST`
This commit is contained in:
@@ -9,12 +9,7 @@ export default class DockerSingleton extends Docker {
|
||||
|
||||
public static getInstance(): DockerSingleton {
|
||||
if (!DockerSingleton.dockerInstance) {
|
||||
DockerSingleton.dockerInstance = new Docker({
|
||||
// If env variable DOCKER_HOST is not set, it will use the default socket
|
||||
...(process.env.DOCKER_HOST && { host: process.env.DOCKER_HOST }),
|
||||
// Same thing for docker port
|
||||
...(process.env.DOCKER_PORT && { port: process.env.DOCKER_PORT }),
|
||||
});
|
||||
DockerSingleton.dockerInstance = new Docker();
|
||||
}
|
||||
return DockerSingleton.dockerInstance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user