From f5f06ded39097493e951f9792576c5926797421d Mon Sep 17 00:00:00 2001 From: arpanetus Date: Mon, 9 Oct 2023 15:06:43 +0600 Subject: [PATCH] bad --- internal/docker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/docker.go b/internal/docker.go index 5071ff9..1c4965b 100644 --- a/internal/docker.go +++ b/internal/docker.go @@ -33,6 +33,7 @@ const ( imageTag = "hf-torch:latest" guestRootPath = "/srv/" guestCachePath = "/home/nonroot/.cache/" + guestRootCachePath = "/root/.cache/" ) func NewDockerRun( @@ -166,6 +167,7 @@ func (d *DockerRun) Run( Binds: []string{ fmt.Sprintf("%s:%s", d.hostRootPath, d.guestRootPath), fmt.Sprintf("%s:%s", d.hostCachePath, d.guestCachePath), + fmt.Sprintf("%s:%s", d.hostCachePath, guestRootCachePath), }, IpcMode: container.IPCModeHost, PidMode: container.PidMode("host"),