using Hosts replace deprecated field
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
This commit is contained in:
		| @@ -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, |  | ||||||
| 		}), |  | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 zounengren
					zounengren