Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit ab2826c

Browse files
committed
Do not attempt to join swarm network if not running in swarm
1 parent df759a7 commit ab2826c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/docker/init.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ exports.pullImage = pullImage;
3434

3535
// join swarm network
3636
const joinSwarmNetwork = async config => {
37+
if (!config.swarm) {
38+
logger.debug('Not running in swarm, no need to join network..');
39+
return;
40+
}
41+
3742
const allServices = await docker.listServices();
3843
// try to find traefik instance
3944
const exoframeServer = allServices.find(c => c.Spec.Name.startsWith('exoframe-server'));

0 commit comments

Comments
 (0)