Skip to content

Commit 789abc9

Browse files
author
zounengren
committed
using Hosts replace deprecated field
Signed-off-by: Zou Nengren <[email protected]>
1 parent 61a46e9 commit 789abc9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

client.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"context"
2222
"encoding/json"
2323
"fmt"
24-
"net/http"
2524
"runtime"
2625
"strconv"
2726
"strings"
@@ -370,9 +369,7 @@ type RemoteContext struct {
370369

371370
func defaultRemoteContext() *RemoteContext {
372371
return &RemoteContext{
373-
Resolver: docker.NewResolver(docker.ResolverOptions{
374-
Client: http.DefaultClient,
375-
}),
372+
Resolver: docker.NewResolver(docker.ResolverOptions{}),
376373
}
377374
}
378375

0 commit comments

Comments
 (0)