Hello, At least three known applications (Docker Swarm, Traefik and Prometheus) have problems running in the newer Windows Containers microsoft/nanoserver:1709. We drilled down the problem in https://github.com/golang/go/issues/21867 <https://github.com/golang/go/issues/21867>. Golang at some point wants to load the NetApi32.dll that isn’t part of NanoServer any more.
Glog uses the harmless function „user.Current() from „os/user“ package and this loads netapi32.dll and panics if it could not be loaded. The idea is to fix this in Golang itself, but probably takes more time to have this released. So the question is can we adjust golang/glog to make it aware of that panic in Windows NanoServer containers and retrieve the user name in a different way? A first draft of a work around can be found in https://github.com/golang/go/issues/21867#issuecomment-375741005 <https://github.com/golang/go/issues/21867#issuecomment-375741005> Reading the environment variables USERDOMAIN + USERNAME on Windows does the trick. How good are the chances to make a PR in golang/glog as suggested to get accepted? Thanks, Stefan -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
