// Check makes sure the docker config is correct
Check makes sure the docker config is correct
// Check makes sure the docker config is correct
func (d DockerConfig) Check() error {
	if d.StorageDriver != "" && !utils.StringInSlice(constants.DockerSupportedDrivers, d.StorageDriver) {
		return trace.BadParameter("unrecognized docker storage driver %q, supported are: %v",
			d.StorageDriver, constants.DockerSupportedDrivers)
	}
	return nil
}
func ( d DockerConfig ) Check ( ) error { if d . StorageDriver != " " && ! utils . StringInSlice ( constants . DockerSupportedDrivers , d . StorageDriver ) { return trace . BadParameter ( " " , d . StorageDriver , constants . DockerSupportedDrivers ) } return nil }
Check makes sure the docker config is correct
Check makes sure the docker config is correct