Generate /etc/hosts by default by dcantah · Pull Request #423 · apple/container

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@dcantah

Copy link

Member

@dcantah dcantah commented

Aug 2, 2025

Closes: #314

This change uses the new .hosts config entry
on Containerization's LinuxContainer config to setup a default /etc/hosts file in the container. Today the two entries are localhost to 127.0.0.1 and the container's IP to its hostname.

werediver, Reneechang17, and jamesdavidson reacted with hooray emoji
Closes: apple#314

This change uses the new `.hosts` config entry
on Containerization's LinuxContainer config to setup
a default /etc/hosts file in the container. Today the
two entries are localhost to 127.0.0.1 and the container's
IP to its hostname.

@dcantah dcantah merged commit f2130a9 into apple:main

Aug 5, 2025

2 checks passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jglogan jglogan jglogan approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: The /etc/hosts file is not created by default

2 participants

@dcantah @jglogan