Skip to content

Commit 55c15f9

Browse files
committed
fixup! avoid duplicate mounts
1 parent 782e917 commit 55c15f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/docker.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,8 @@ func runDockerCVM(ctx context.Context, log slog.Logger, client dockerutil.Client
628628
strings.TrimPrefix(mountpoint, strings.TrimSuffix(flags.hostUsrLibDir, "/")),
629629
)
630630
}
631-
// Avoid duplicate mounts.
631+
// Even though xunix.GPUs checks for duplicate mounts, we need to check
632+
// for duplicates again here after remapping the path.
632633
if slices.ContainsFunc(mounts, func(m xunix.Mount) bool {
633634
return m.Mountpoint == mountpoint
634635
}) {

0 commit comments

Comments
 (0)