fix: Fix the issue of abnormal container sharing mode modification (#10644)

This commit is contained in:
ssongliu 2025-10-15 13:38:27 +08:00 committed by GitHub
parent fb80724a96
commit 026ed1eb42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),
}