Skip to content

Commit

Permalink
fix proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed May 18, 2020
1 parent ea57839 commit a17faf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/minikube/machine/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package machine

import (
"fmt"
"time"

"github.com/docker/machine/libmachine/host"
Expand Down Expand Up @@ -93,6 +94,7 @@ func provisionDockerMachine(h *host.Host) error {
if err != nil {
return errors.Wrap(err, "fast detect")
}
fmt.Printf("engine options are :\n %+v\n", h.HostOptions.EngineOptions)
return p.Provision(*h.HostOptions.SwarmOptions, *h.HostOptions.AuthOptions, *h.HostOptions.EngineOptions)
}

Expand Down
5 changes: 5 additions & 0 deletions pkg/minikube/machine/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ func createHost(api libmachine.API, cfg config.ClusterConfig, n config.Node) (*h
h.HostOptions.AuthOptions.StorePath = localpath.MiniPath()
h.HostOptions.EngineOptions = engineOptions(cfg)

err = provisionDockerMachine(h)
if err != nil {
return h, errors.Wrap(err, "provision")
}

cstart := time.Now()
glog.Infof("libmachine.API.Create for %q (driver=%q)", cfg.Name, cfg.Driver)

Expand Down

0 comments on commit a17faf8

Please sign in to comment.