Skip to content

[Bug] Manually pasting Docker compose file path will overwritten the .env file in the path. #12106

@CNCoreSteb

Description

@CNCoreSteb

Contact Information

No response

1Panel Version

V2.1.3

Problem Description

在创建编排使用路径选择,在人工粘贴入路径时创建编排会出现将目标.env清空的问题。
在手动使用路径选择器选到文件时正常获取到环境变量,创建没有问题,docker compose up -d --build创建编排也没问题
(以前手动粘贴路径有时似乎可以获取到环境变量,但目前无法复现)
(尝试修改权限至444以防止其他程序修改,经过排查确认应该是此问题导致)
Image
在没有获取到内容且没有主动输入内容时不应直接覆盖

Steps to Reproduce

手动粘贴编排文件位置,未能获取到环境变量,此时创建会将.env文件完全清空
Image

The expected correct result

当使用路径选择器选中编排文件时环境变量被正常读取,此时执行创建则正常
Image

Related log output

Additional Information

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions