in options.go [355:372]
func getSocketPath() string {
filename := strings.Join([]string{
".firecracker.sock",
strconv.Itoa(os.Getpid()),
strconv.Itoa(rand.Intn(1000))},
"-",
)
var dir string
if d := os.Getenv("HOME"); checkExistsAndDir(d) {
dir = d
} else if checkExistsAndDir(os.TempDir()) {
dir = os.TempDir()
} else {
panic("Unable to find a location for firecracker socket. 'It's not going to do any good to land on mars if we're stupid.' --Ray Bradbury")
}
return filepath.Join(dir, filename)
}