kerberos-io / agent

An open and scalable video surveillance system for anyone making this world a better and more peaceful place.
https://kerberos.io
MIT License
691 stars 85 forks source link

Alpine+go combination doesn't resolve DNS correctly under docker comp… #102

Closed lubikx closed 1 year ago

lubikx commented 1 year ago

After some investigation where docker run would work but docker compose would not we have found out that combination of alpine + golang sometimes does not correctly resolve DNS requests.

This is really hard to debug because everything else works properly in the running container.

Solution is to force golang to use another resolver system by adding netgo tag in the build process or at least that's how I understand what this does. :)