Skip to content

Commit a6edb44

Browse files
authored
Mount volumes at /mnt/disks (#2584)
1 parent 0868de5 commit a6edb44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

runner/internal/shim/docker.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,9 @@ func formatAndMountVolume(ctx context.Context, volume VolumeInfo) error {
564564
}
565565

566566
func getVolumeMountPoint(volumeName string) string {
567-
// Put volumes in data-specific dir to avoid clashes with host dirs
568-
return fmt.Sprintf("/dstack-volumes/%s", volumeName)
567+
// Put volumes in dstack-specific dir to avoid clashes with host dirs.
568+
// /mnt/disks is used since on some VM images other places may not be writable (e.g. GCP COS).
569+
return fmt.Sprintf("/mnt/disks/dstack-volumes/%s", volumeName)
569570
}
570571

571572
func prepareInstanceMountPoints(taskConfig TaskConfig) error {

0 commit comments

Comments
 (0)