diff --git a/pkg/filesystem/registry/sync.go b/pkg/filesystem/registry/sync.go index 0c442bb8814..285d1366010 100644 --- a/pkg/filesystem/registry/sync.go +++ b/pkg/filesystem/registry/sync.go @@ -147,7 +147,7 @@ func getRegistryServeCommand(pathResolver constants.PathResolver, port string) s } func syncViaSSH(_ context.Context, s *impl, target string, localDir string) error { - return ssh.CopyDir(s.execer, target, localDir, s.pathResolver.RootFSPath(), nil) + return ssh.CopyDir(s.execer, target, localDir, s.pathResolver.RootFSRegistryPath(), nil) } func syncViaHTTP(ctx context.Context, target string, localDir string) error {