1Panel-dev / 1Panel-dev/1Panel

希望应用增加容器/etc/hosts静态域名解析配置参数(可多个),即compose文件extra_hosts参数。

Open
#4,782 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.