I am running a Beego application that relies on updates in /etc/hosts (via Docker links) to find other servers. /etc/hosts updates fine but the application will not use new hosts unless it is either restarted or after it has waited way too long. After reviewing the documentation for src/net/hosts it looks like I am locked into a 5 minute refresh time.
Is there a way to force this cache to refresh or am I looking at this problem the wrong way?
extra_hosts
parameter in Docker Compose is not being identified when callinghttp.Get
method – Moltke