Merge pull request #5944 from zouyee/deprecated

using Hosts replace deprecated field
This commit is contained in:
Phil Estes 2021-09-07 10:15:50 -04:00 committed by GitHub
commit 0ae5c41f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,6 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"net/http"
"runtime" "runtime"
"strconv" "strconv"
"strings" "strings"
@ -370,9 +369,7 @@ type RemoteContext struct {
func defaultRemoteContext() *RemoteContext { func defaultRemoteContext() *RemoteContext {
return &RemoteContext{ return &RemoteContext{
Resolver: docker.NewResolver(docker.ResolverOptions{ Resolver: docker.NewResolver(docker.ResolverOptions{}),
Client: http.DefaultClient,
}),
} }
} }