Have had so many issues related to DNS Lookup failures with container images on Alpine that I honestly can’t be bothered to deal with it anymore. If such basic stuff isn’t reliable then why should I consider it for production usage?
I stick to using Ubuntu minimal container images. They’re 30MB (compressed) in size so it’s never a problem around container bloat.
Alpine DNS is so insanely weird. I had an immutable task that, after a year of smooth operation, would fail one particular DNS lookup in the JRE in one specific AWS AZ, and did fine in other AZs in the region, or if you seeded whatever host cache it uses with “dig” every so often. I couldn’t detect any difference in the DNS responses across AZs.
Those tasks then became Debian based within a couple days.
I stick to using Ubuntu minimal container images. They’re 30MB (compressed) in size so it’s never a problem around container bloat.