[release] v0.5.12-unstable
This commit is contained in:
parent
68e3220e71
commit
da883991d0
|
@ -418,10 +418,9 @@ func CreateService(serviceRequest DockerServiceCreateRequest, OnLog func(string)
|
|||
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)
|
||||
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)
|
||||
return err
|
||||
} else {
|
||||
newSource = "/mnt/host" + newSource
|
||||
}
|
||||
newSource = "/mnt/host" + newSource
|
||||
}
|
||||
|
||||
utils.Log(fmt.Sprintf("Checking directory %s for bind mount", newSource))
|
||||
|
|
|
@ -142,9 +142,9 @@ func EditContainer(oldContainerID string, newConfig types.ContainerJSON, noLock
|
|||
if os.Getenv("HOSTNAME") != "" {
|
||||
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)
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue