balena-os / balena-supervisor

Balena Supervisor: balena's agent on devices.
https://balena.io
Other
148 stars 63 forks source link

Containers with host networking cannot resolve their hostname #994

Open CameronDiver opened 5 years ago

CameronDiver commented 5 years ago

This seems to come from /etc/hosts not being populated with the devices' hostname, but this happens on normal docker. It's not clear if this is a bug in the supervisor or balenaEngine (or even the OS itself).

Either way, this can be solved on the supervisor side by adding <hostname>:127.0.0.1 to the extraHosts array on a container with host networking.

balena-ci commented 5 years ago

[camerondiver] This issue has attached support thread https://jel.ly.fish/#/support-thread~7c469aeb-dc37-465b-8123-40536ba0668b

CameronDiver commented 5 years ago

Being handled here: https://github.com/balena-os/meta-balena/issues/1548

balena-ci commented 5 years ago

[shaunmulligan] This issue has attached support thread https://jel.ly.fish/#/support-thread~7867ea93-67f0-4eeb-90ab-5803342f1f40