MCPcopy
hub / github.com/docker/compose / supportsRuntimeFlags

Method supportsRuntimeFlags

pkg/compose/model.go:285–294  ·  pkg/compose/model.go::modelAPI.supportsRuntimeFlags

supportsRuntimeFlags checks if the docker model version supports runtime flags Runtime flags are supported in version >= v1.0.6

()

Source from the content-addressed store, hash-verified

283// supportsRuntimeFlags checks if the docker model version supports runtime flags
284// Runtime flags are supported in version >= v1.0.6
285func (m *modelAPI) supportsRuntimeFlags() bool {
286 // If version is not cached, don't append runtime flags to be safe
287 if m.version == "" {
288 return false
289 }
290
291 // Strip 'v' prefix if present (e.g., "v1.0.6" -> "1.0.6")
292 versionStr := strings.TrimPrefix(m.version, "v")
293 return !versions.LessThan(versionStr, "1.0.6")
294}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected