diff --git a/src/utils/config/docker.js b/src/utils/config/docker.js index ee8559e03..7e1422e0f 100644 --- a/src/utils/config/docker.js +++ b/src/utils/config/docker.js @@ -22,13 +22,13 @@ export default function getDockerArguments(server) { if (servers[server]) { if (servers[server].socket) { - return { conn: { socketPath: servers[server].socket }, swarm: servers[server].swarm == true ? true : false }; + return { conn: { socketPath: servers[server].socket }, swarm: !!servers[server].swarm }; } if (servers[server].host) { return { conn: { host: servers[server].host, port: servers[server].port || null }, - swarm: servers[server].swarm == true ? true : false, + swarm: !!servers[server].swarm, }; }