Update controllers/apps/docker/useDocker.js and utils/init/initialConfig.json to support the new configuration

This commit is contained in:
Lucas K 2022-11-08 12:36:56 -03:00
parent 490c109b01
commit 7d873e0240
2 changed files with 3 additions and 1 deletions

View file

@ -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,
}
);

View file

@ -18,6 +18,7 @@
"secondarySearchProvider": "d",
"dockerApps": false,
"dockerHost": "localhost",
"dockerSocket": "/var/run/docker.sock",
"kubernetesApps": false,
"unpinStoppedApps": false,
"useAmericanDate": false,