When mounting timezone data, check for the path first to avoid a fatal error

This commit is contained in:
Dane Everitt
2019-12-24 16:49:08 -08:00
parent 32e389db21
commit 06f495682c
2 changed files with 34 additions and 10 deletions

View File

@@ -166,7 +166,7 @@ type DockerConfiguration struct {
// Defines the location of the timezone file on the host system that should
// be mounted into the created containers so that they all use the same time.
TimezonePath string `yaml:"timezone_path"`
TimezonePath string `default:"/etc/localtime" yaml:"timezone_path"`
}
// Defines the configuration for the internal API that is exposed by the