Skip to content

Commit

Permalink
Set default storageDriver to overlay2
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghang8421 authored and Alena Prokharchyk committed Nov 11, 2019
1 parent 7d5e7e3 commit 448df10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmachine/provision/rancheros.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (provisioner *RancherProvisioner) Provision(swarmOptions swarm.Options, aut
swarmOptions.Env = engineOptions.Env

if provisioner.EngineOptions.StorageDriver == "" {
provisioner.EngineOptions.StorageDriver = "overlay"
provisioner.EngineOptions.StorageDriver = "overlay2"
} else if provisioner.EngineOptions.StorageDriver != "overlay" && provisioner.EngineOptions.StorageDriver != "overlay2" {
return fmt.Errorf("Unsupported storage driver: %s", provisioner.EngineOptions.StorageDriver)
}
Expand Down

0 comments on commit 448df10

Please sign in to comment.