Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Why Do We Change The Hostname Inside The Chroot? #498
If you are inside container, you don't have access to /etc/hosts file outside of the container. And if you don't have DNS entry for hour hostname, your hostname resolution will fail inside of the container. Having ip-hostname pair in /etc/hosts file outside of the container, won't make hostname resolution inside the container.