mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-19 05:49:02 +08:00
fix: Fix the issue of abnormal container sharing mode modification (#10644)
This commit is contained in:
parent
fb80724a96
commit
026ed1eb42
1 changed files with 1 additions and 1 deletions
|
|
@ -1509,7 +1509,7 @@ func loadConfigInfo(isCreate bool, req dto.ContainerOperate, oldContainer *conta
|
|||
Target: volume.ContainerDir,
|
||||
ReadOnly: volume.Mode == "ro",
|
||||
}
|
||||
if volume.Type == "mount" {
|
||||
if volume.Type == "bind" {
|
||||
item.BindOptions = &mount.BindOptions{
|
||||
Propagation: mount.Propagation(volume.Shared),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue