[release] v0.5.12-unstable

This commit is contained in:
Yann Stepienik 2023-05-28 12:16:50 +01:00
parent 68e3220e71
commit da883991d0
2 changed files with 4 additions and 5 deletions

View file

@ -418,10 +418,9 @@ func CreateService(serviceRequest DockerServiceCreateRequest, OnLog func(string)
if _, err := os.Stat("/mnt/host"); os.IsNotExist(err) { if _, err := os.Stat("/mnt/host"); os.IsNotExist(err) {
utils.Error("CreateService: Unable to create directory for bind mount in the host directory. Please mount the host / in Cosmos with -v /:/mnt/host to enable folder creations, or create the bind folder yourself", err) utils.Error("CreateService: Unable to create directory for bind mount in the host directory. Please mount the host / in Cosmos with -v /:/mnt/host to enable folder creations, or create the bind folder yourself", err)
OnLog(fmt.Sprintf("[ERROR] Unable to create directory for bind mount in the host directory. Please mount the host / in Cosmos with -v /:/mnt/host to enable folder creations, or create the bind folder yourself: %s\n", err.Error())) OnLog(fmt.Sprintf("[ERROR] Unable to create directory for bind mount in the host directory. Please mount the host / in Cosmos with -v /:/mnt/host to enable folder creations, or create the bind folder yourself: %s\n", err.Error()))
Rollback(rollbackActions, OnLog) } else {
return err newSource = "/mnt/host" + newSource
} }
newSource = "/mnt/host" + newSource
} }
utils.Log(fmt.Sprintf("Checking directory %s for bind mount", newSource)) utils.Log(fmt.Sprintf("Checking directory %s for bind mount", newSource))

View file

@ -142,9 +142,9 @@ func EditContainer(oldContainerID string, newConfig types.ContainerJSON, noLock
if os.Getenv("HOSTNAME") != "" { if os.Getenv("HOSTNAME") != "" {
if _, err := os.Stat("/mnt/host"); os.IsNotExist(err) { if _, err := os.Stat("/mnt/host"); os.IsNotExist(err) {
utils.Error("EditContainer: Unable to create directory for bind mount in the host directory. Please mount the host / in Cosmos with -v /:/mnt/host to enable folder creations, or create the bind folder yourself", err) utils.Error("EditContainer: Unable to create directory for bind mount in the host directory. Please mount the host / in Cosmos with -v /:/mnt/host to enable folder creations, or create the bind folder yourself", err)
return "", errors.New("Unable to create directory for bind mount in the host directory. Please mount the host / in Cosmos with -v /:/mnt/host to enable folder creations, or create the bind folder yourself") } else {
newSource = "/mnt/host" + newSource
} }
newSource = "/mnt/host" + newSource
} }
utils.Log(fmt.Sprintf("Checking directory %s for bind mount", newSource)) utils.Log(fmt.Sprintf("Checking directory %s for bind mount", newSource))