Move dns-search from daemon to client as well

Verified no regression of #130
This commit is contained in:
Ian Fijolek
2017-04-20 21:28:20 +00:00
parent 9dd51575ab
commit f0ba126156
2 changed files with 2 additions and 1 deletions

View File

@@ -204,6 +204,7 @@ function createSubcontainer(app, name, cmd, options, callback) {
VolumesFrom: isAppContainer ? null : [ app.containerId + ":rw" ],
NetworkMode: isAppContainer ? 'cloudron' : ('container:' + app.containerId), // share network namespace with parent
Dns: ['172.18.0.1'], // use internal dns
DnsSearch: ['.'], // use internal dns
SecurityOpt: enableSecurityOpt ? [ "apparmor:docker-cloudron-app" ] : null // profile available only on cloudron
}
};