Index: src/github.com/docker/cli/cli-plugins/manager/manager_unix.go
--- src/github.com/docker/cli/cli-plugins/manager/manager_unix.go.orig	2025-04-17 23:43:19.000000000 +0200
+++ src/github.com/docker/cli/cli-plugins/manager/manager_unix.go	2025-04-17 23:43:47.997063000 +0200
@@ -13,8 +13,5 @@
 //
 // [ConfigFile.CLIPluginsExtraDirs]: https://pkg.go.dev/github.com/docker/cli@v26.1.4+incompatible/cli/config/configfile#ConfigFile.CLIPluginsExtraDirs
 var defaultSystemPluginDirs = []string{
-	"/usr/local/lib/docker/cli-plugins",
-	"/usr/local/libexec/docker/cli-plugins",
-	"/usr/lib/docker/cli-plugins",
-	"/usr/libexec/docker/cli-plugins",
+	"@l_prefix@/lib/docker/cli-plugins",
 }
Index: src/github.com/docker/cli/cli/config/credentials/default_store_unsupported.go
--- src/github.com/docker/cli/cli/config/credentials/default_store_unsupported.go.orig	2025-04-17 23:43:22.000000000 +0200
+++ src/github.com/docker/cli/cli/config/credentials/default_store_unsupported.go	2025-04-17 23:43:47.997150000 +0200
@@ -1,4 +1,4 @@
-//go:build !windows && !darwin && !linux
+//go:build !windows && !darwin && !linux && !freebsd
 
 package credentials
 
