make app subcontainers share network namespace with app

pid namespace sharing is coming in https://github.com/docker/docker/issues/10163
This commit is contained in:
Girish Ramakrishnan
2015-11-26 19:18:29 -08:00
parent 6f5408f0d6
commit 32f677ca0d

View File

@@ -190,6 +190,7 @@ function createSubcontainer(app, name, cmd, options, callback) {
},
CpuShares: 512, // relative to 1024 for system processes
VolumesFrom: isAppContainer ? null : [ app.containerId + ":rw" ],
NetworkMode: isAppContainer ? 'default' : ('container:' + app.containerId), // share network namespace with parent
SecurityOpt: config.CLOUDRON ? [ "apparmor:docker-cloudron-app" ] : null // profile available only on cloudron
}
};