1Panel-dev / 1Panel-dev/1Panel
希望应用增加容器/etc/hosts静态域名解析配置参数(可多个),即compose文件extra_hosts参数。
Open
@wanghe-fit2cloud is already working on this.
Since Apr 28, 2024.
type: feature-request
- Dominant language
- Go
- Stars
- 37k
- Forks
- 3.4k
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 105
Description
1Panel 版本
1.10.5-lts
请描述您的需求或者改进建议
因项目需要,有些容器需要内部配置hosts文件静态解析,目前无此参数支持,exec进入容器内部手动编辑的hosts文件在容器重启后会被还原,很不方便维护。
因此希望应用增加容器/etc/hosts静态域名解析配置参数(可多个),即docker_ompose.yml 文件extra_hosts参数支持。谢谢!
由此,建议在新版本多增加些docker_ompose.yml 支持的成熟通用参数配置,以满足复杂场景的可配置操作性。
请描述你建议的实现方案
No response
附加信息
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.