From e775fd2967c090b16311da5c1d3218e91d7472ad Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 24 May 2022 15:05:46 +0200 Subject: [PATCH] check context builder endpoint Signed-off-by: CrazyMax --- commands/util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/util.go b/commands/util.go index 9d90098e293b..f7e7aaa12733 100644 --- a/commands/util.go +++ b/commands/util.go @@ -73,6 +73,9 @@ func driversForNodeGroup(ctx context.Context, dockerCli command.Cli, ng *store.N if err != nil { return nil, err } + if _, err = dockerapi.Ping(ctx); err != nil { + return nil, err + } f, err = driver.GetDefaultFactory(ctx, ep, dockerapi, false) if err != nil { return nil, err