Update controllers/apps/docker/useDocker.js and utils/init/initialConfig.json to support the new configuration
This commit is contained in:
parent
490c109b01
commit
7d873e0240
2 changed files with 3 additions and 1 deletions
|
@ -9,6 +9,7 @@ const useDocker = async (apps) => {
|
|||
useOrdering: orderType,
|
||||
unpinStoppedApps,
|
||||
dockerHost: host,
|
||||
dockerSocket: socket
|
||||
} = await loadConfig();
|
||||
|
||||
let containers = null;
|
||||
|
@ -20,7 +21,7 @@ const useDocker = async (apps) => {
|
|||
let { data } = await axios.get(
|
||||
`http://${host}/containers/json?{"status":["running"]}`,
|
||||
{
|
||||
socketPath: process.env.DOCKER_SOCKET ? process.env.DOCKER_SOCKET : '/var/run/docker.sock',
|
||||
socketPath: socket,
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
"secondarySearchProvider": "d",
|
||||
"dockerApps": false,
|
||||
"dockerHost": "localhost",
|
||||
"dockerSocket": "/var/run/docker.sock",
|
||||
"kubernetesApps": false,
|
||||
"unpinStoppedApps": false,
|
||||
"useAmericanDate": false,
|
||||
|
|
Loading…
Reference in a new issue