Skip to content

Commit 10f1fa1

Browse files
committed
API negotiation option is deprecated
1 parent 3a6b878 commit 10f1fa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/backup/script.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (s *script) init() error {
109109
_, err := os.Stat("/var/run/docker.sock")
110110
_, dockerHostSet := os.LookupEnv("DOCKER_HOST")
111111
if !os.IsNotExist(err) || dockerHostSet {
112-
cli, err := client.New(client.FromEnv, client.WithAPIVersionNegotiation())
112+
cli, err := client.New(client.FromEnv)
113113
if err != nil {
114114
return errwrap.Wrap(err, "failed to create docker client")
115115
}

0 commit comments

Comments
 (0)