Skip to content

Commit

Permalink
driver: software: podman: Negotiate client API
Browse files Browse the repository at this point in the history
  • Loading branch information
ish-hcc committed May 16, 2024
1 parent 2013351 commit 033154f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agent/driver/software/podman_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ func newPodmanClient() (*client.Client, error) {
logger.Println(logger.ERROR, true, "PODMAN: "+err.Error())
return nil, err
}
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
cli.NegotiateAPIVersion(ctx)

return cli, nil
}
Expand Down

0 comments on commit 033154f

Please sign in to comment.