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

/etc/hosts,customize #5232

Open
1 task done
leisure233 opened this issue Oct 6, 2024 · 4 comments
Open
1 task done

/etc/hosts,customize #5232

leisure233 opened this issue Oct 6, 2024 · 4 comments
Labels
feature request A request for a new feature.

Comments

@leisure233
Copy link

Is there an existing feature request for this?

  • I have searched the existing issues before opening this feature request.

Describe the feature you would like to see.

Can I add a /etc/hosts customization? It is very effective in special circumstances. I have tried a lot, including rebuilding the image, but it will be changed when I start, which will make my original changes ineffective.

Describe the solution you'd like.

Add customization to /etc/hosts.

Additional context to this request.

No response

@leisure233 leisure233 added the feature request A request for a new feature. label Oct 6, 2024
@parkervcp
Copy link
Member

If I understand correctly, docker handles the generation of the hosts files on start.

@leisure233
Copy link
Author

如果我理解正确,docker 会在启动时处理 hosts 文件的生成。

I want to add something like 192.168.1.100 example.com in it, but in my test, both copy at build time and adding it in the mirror startup script will be changed at startup.
Can you add one similar to the docker add-host command?

@Rioxys
Copy link

Rioxys commented Oct 15, 2024

Are you using a vps/server hoster or are you hosting your panel locally?

@leisure233
Copy link
Author

Are you using a vps/server hoster or are you hosting your panel locally?

vps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request for a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants