Skip to content

Commit

Permalink
docker: NewEnvClient is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
r2d4 committed Jun 12, 2018
1 parent c094741 commit 29e9078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/skaffold/docker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func newAPIClient(kubeContext string) (APIClient, error) {
// It will "negotiate" the highest possible API version supported by both the client
// and the server if there is a mismatch.
func newEnvAPIClient() (APIClient, error) {
cli, err := client.NewEnvClient()
cli, err := client.NewClientWithOpts(client.FromEnv)
if err != nil {
return nil, fmt.Errorf("Error getting docker client: %s", err)
}
Expand Down

0 comments on commit 29e9078

Please sign in to comment.