File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ const (
4747 // ConsoleLog configures console to a tty and sends its contents to the logs
4848 ConsoleLog
4949
50- defaultVPNKitSock = "Library/Containers/com.docker.docker/Data/s50"
50+ legacyVPNKitSock = "Library/Containers/com.docker.docker/Data/s50"
51+ defaultVPNKitSock = "Library/Containers/com.docker.docker/Data/vpnkit.eth.sock"
5152
5253 defaultCPUs = 1
5354 defaultMemory = 1024 // 1G
@@ -591,6 +592,9 @@ func checkHyperKit(hyperkit string) (string, error) {
591592func checkVPNKitSock (vpnkitsock string ) (string , error ) {
592593 if vpnkitsock == "auto" {
593594 vpnkitsock = filepath .Join (getHome (), defaultVPNKitSock )
595+ if _ , err := os .Stat (vpnkitsock ); err != nil {
596+ vpnkitsock = filepath .Join (getHome (), legacyVPNKitSock )
597+ }
594598 }
595599 if vpnkitsock == "" {
596600 return "" , nil
You can’t perform that action at this time.
0 commit comments