chore: at least try to auto-negotiate docker client version
As a convenience for users running older docker daemon versions, we should configure our client to negotiate an API version.
@@ -68,7 +68,7 @@ func newContainerManager(a *agent, fluentPort int) (*containerManager, error) {
func (c *containerManager) Receive(ctx *actor.Context) error {
switch msg := ctx.Message().(type) {
case actor.PreStart:
- d, err := client.NewClientWithOpts(client.FromEnv)
+ d, err := client.NewClientWithOpts(client.WithAPIVersionNegotiation(), client.FromEnv)
if err != nil {
return err
}
