Docker API client version bumped to 1.24 everywhere

This commit is contained in:
Raj Chaudhuri committed 2024-03-07 19:27:12 +05:30
1 parent 55a46992d4
commit e50040883f
12 files changed
+118 -27

No files matched your search

+3 -3
View File
@@ -75,9 +75,9 @@ func isDockerPluginEnabled(args []string) error {
}
func newDockerClient() (*docker.Client, error) {
// API 1.21 is the first version that supports docker network
// commands
c, err := docker.NewVersionedClientFromEnv("1.21")
// API 1.21 was the first version that supports docker network
// commands. In March 2024, the minimum suupported API is 1.24
c, err := newVersionedDockerClientFromEnv(defaulDockerAPIVersion)
if err != nil {
return nil, fmt.Errorf("unable to connect to docker: %s", err)
}