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:
parent
e2168d21c7
commit
51b9804fab
3 changed files with 17 additions and 3 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue