add possibility to use env var DOCKER_SOCKET to set docker socket path
This commit is contained in:
parent
446b4095f6
commit
b180983872
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ const useDocker = async (apps) => {
|
|||
let { data } = await axios.get(
|
||||
`http://${host}/containers/json?{"status":["running"]}`,
|
||||
{
|
||||
socketPath: '/var/run/docker.sock',
|
||||
socketPath: process.env.DOCKER_SOCKET ? process.env.DOCKER_SOCKET : '/var/run/docker.sock',
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue