docker/cli ยท error

invalid boolean: %s

Error message

invalid boolean: %s

What it means

Error "invalid boolean: %s" thrown in docker/cli.

Source

Thrown at cli/compose/loader/interpolate.go:70

}

func toInt(value string) (any, error) {
	return strconv.Atoi(value)
}

func toFloat(value string) (any, error) {
	return strconv.ParseFloat(value, 64)
}

// should match http://yaml.org/type/bool.html
func toBoolean(value string) (any, error) {
	switch strings.ToLower(value) {
	case "y", "yes", "true", "on":
		return true, nil
	case "n", "no", "false", "off":
		return false, nil
	default:
		return nil, fmt.Errorf("invalid boolean: %s", value)
	}
}

func interpolateConfig(configDict map[string]any, opts interp.Options) (map[string]any, error) {
	return interp.Interpolate(configDict, opts)
}

View on GitHub (pinned to e9452d6e78)

When it happens

Trigger: Thrown at cli/compose/loader/interpolate.go:70 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of docker/cli@e9452d6e78 (2026-08-01). Data as JSON: /data/errors/80d2cb6f2b3bfc49.json. Report an issue: GitHub.