Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion go/hyperkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const (
// ConsoleLog configures console to a tty and sends its contents to the logs
ConsoleLog

defaultVPNKitSock = "Library/Containers/com.docker.docker/Data/s50"
legacyVPNKitSock = "Library/Containers/com.docker.docker/Data/s50"
defaultVPNKitSock = "Library/Containers/com.docker.docker/Data/vpnkit.eth.sock"

defaultCPUs = 1
defaultMemory = 1024 // 1G
Expand Down Expand Up @@ -591,6 +592,9 @@ func checkHyperKit(hyperkit string) (string, error) {
func checkVPNKitSock(vpnkitsock string) (string, error) {
if vpnkitsock == "auto" {
vpnkitsock = filepath.Join(getHome(), defaultVPNKitSock)
if _, err := os.Stat(vpnkitsock); err != nil {
vpnkitsock = filepath.Join(getHome(), legacyVPNKitSock)
}
}
if vpnkitsock == "" {
return "", nil
Expand Down