Removed a problem with duplicate binds in worker

This commit is contained in:
Frikky
2025-04-03 18:23:34 +02:00
parent 3ce9a75ef6
commit d1d06df2b0
4 changed files with 17 additions and 7 deletions
+4 -1
View File
@@ -906,7 +906,10 @@ func deployApp(cli *dockerclient.Client, image string, identifier string, env []
if len(volumeBinds) > 0 {
log.Printf("[DEBUG] Setting up binds for container. Got %d volume binds.", len(volumeBinds))
hostConfig.Binds = volumeBinds
//hostConfig.Binds = volumeBinds
// Only use mounts, not direct binds
hostConfig.Binds = []string{}
hostConfig.Mounts = []mount.Mount{}
for _, bind := range volumeBinds {
if !strings.Contains(bind, ":") || strings.Contains(bind, "..") || strings.HasPrefix(bind, "~") {