docker: use the system dns for app containers

This commit is contained in:
Girish Ramakrishnan
2024-09-10 09:31:29 +02:00
parent a72c038435
commit 92bce26e22
3 changed files with 2 additions and 3 deletions

View File

@@ -373,8 +373,6 @@ async function createSubcontainer(app, name, cmd, options) {
if (isAppContainer) {
containerOptions.Hostname = app.id;
containerOptions.HostConfig.NetworkMode = 'cloudron'; // user defined bridge network
containerOptions.HostConfig.Dns = ['172.18.0.1']; // use internal dns
containerOptions.HostConfig.DnsSearch = ['.']; // use internal dns
containerOptions.NetworkingConfig = {
EndpointsConfig: {