From 9e611b6ae3ba1760e4832f17e3835daf15e1c06b Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 25 Apr 2017 12:24:59 -0700 Subject: [PATCH] Run scheduler containers in cloudron network as well This results in: box:scheduler Unhandled error: { Error: (HTTP code 409) unexpected - Conflicting options: dns and the network mode Part of #307 --- src/docker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docker.js b/src/docker.js index 5ce9e15f1..aa3208535 100644 --- a/src/docker.js +++ b/src/docker.js @@ -202,7 +202,7 @@ function createSubcontainer(app, name, cmd, options, callback) { }, CpuShares: 512, // relative to 1024 for system processes VolumesFrom: isAppContainer ? null : [ app.containerId + ":rw" ], - NetworkMode: isAppContainer ? 'cloudron' : ('container:' + app.containerId), // share network namespace with parent + NetworkMode: 'cloudron', Dns: ['172.18.0.1'], // use internal dns DnsSearch: ['.'], // use internal dns SecurityOpt: enableSecurityOpt ? [ "apparmor=docker-cloudron-app" ] : null // profile available only on cloudron