Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containers with host networking cannot resolve their hostname #994

Open
CameronDiver opened this issue May 31, 2019 · 3 comments
Open

Containers with host networking cannot resolve their hostname #994

CameronDiver opened this issue May 31, 2019 · 3 comments
Labels
low-hanging fruit Easy to fix issue Needs discussion The fix for this needs to be discussed. Needs more investigation More investigation is needed to find the cause or fix

Comments

@CameronDiver
Copy link
Contributor

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.

@CameronDiver CameronDiver added low-hanging fruit Easy to fix issue Needs more investigation More investigation is needed to find the cause or fix Needs discussion The fix for this needs to be discussed. labels May 31, 2019
@balena-ci
Copy link
Collaborator

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

@CameronDiver
Copy link
Contributor Author

Being handled here: balena-os/meta-balena#1548

@balena-ci
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low-hanging fruit Easy to fix issue Needs discussion The fix for this needs to be discussed. Needs more investigation More investigation is needed to find the cause or fix
Projects
None yet
Development

No branches or pull requests

2 participants