diff --git a/pkg/provider/handlers/deploy.go b/pkg/provider/handlers/deploy.go index fec5f24..8055a0d 100644 --- a/pkg/provider/handlers/deploy.go +++ b/pkg/provider/handlers/deploy.go @@ -248,6 +248,10 @@ func prepareEnv(envProcess string, reqEnvVars map[string]string) []string { func getMounts() []specs.Mount { wd, _ := os.LookupEnv("hosts_dir") + if len(wd) == 0 { + wd = "/var/lib/faasd-provider" + } + mounts := []specs.Mount{} mounts = append(mounts, specs.Mount{ Destination: "/etc/resolv.conf",