1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix(updater): specify docker client version [EE-5010] (#8459)

This commit is contained in:
cmeng 2023-02-08 17:00:22 +13:00 committed by GitHub
parent e2168d21c7
commit 51b9804fab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 3 deletions

View file

@ -6,6 +6,7 @@ import (
"github.com/docker/docker/client"
"github.com/pkg/errors"
"github.com/portainer/portainer/api/docker"
"github.com/rs/zerolog/log"
)
@ -53,7 +54,7 @@ func DetermineContainerPlatform() (ContainerPlatform, error) {
return "", nil
}
dockerCli, err := client.NewClientWithOpts()
dockerCli, err := docker.CreateSimpleClient()
if err != nil {
return "", errors.WithMessage(err, "failed to create docker client")
}