From 92bce26e2262bf513c9de2fbebf49d4e8c15ab74 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 10 Sep 2024 09:31:29 +0200 Subject: [PATCH] docker: use the system dns for app containers --- CHANGES | 1 + src/docker.js | 2 -- src/infra_version.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index a99f8fb13..9e0dbf894 100644 --- a/CHANGES +++ b/CHANGES @@ -2842,4 +2842,5 @@ * backups: do not overflow the schedule timings * checklist: new checklist items on update are acknowledged * backups: automatically trigger a remount if mount is not active +* dns: make app containers use system DNS diff --git a/src/docker.js b/src/docker.js index 49510cbc1..61ed3b3dc 100644 --- a/src/docker.js +++ b/src/docker.js @@ -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: { diff --git a/src/infra_version.js b/src/infra_version.js index 026dd393c..20c67ff64 100644 --- a/src/infra_version.js +++ b/src/infra_version.js @@ -6,7 +6,7 @@ exports = module.exports = { // a version change recreates all containers with latest docker config - 'version': '49.7.0', + 'version': '49.8.0', // a major version bump in the db containers will trigger the restore logic that uses the db dumps // docker inspect --format='{{index .RepoDigests 0}}' $IMAGE to get the sha256