fix: respect DOKKU_LIB_HOST_ROOT for storage bind mounts
When Dokku runs in Docker with a shared socket, create/chown still use DOKKU_LIB_ROOT inside the container, but Docker -v flags for storage:exec and deploy must use DOKKU_LIB_HOST_ROOT so the daemon mounts the host data volume instead of the real host's /var/lib/dokku. Closes #9126.
This commit is contained in:
8 files changed
+103
-3
No files matched your search
@@ -308,7 +308,7 @@ var appSchedulerFor = common.GetAppScheduler
|
||||
// buildDockerVFlag formats the Docker -v argument for a docker-local
|
||||
// attachment.
|
||||
func buildDockerVFlag(entry *Entry, attachment *Attachment) string {
|
||||
host := entry.HostPath
|
||||
host := HostPathForDocker(entry.HostPath)
|
||||
container := attachment.ContainerPath
|
||||
if host == "" || container == "" {
|
||||
return ""
|
||||
|
||||
Reference in new issue
Block a user