supportsRuntimeFlags checks if the docker model version supports runtime flags Runtime flags are supported in version >= v1.0.6
()
| 283 | // supportsRuntimeFlags checks if the docker model version supports runtime flags |
| 284 | // Runtime flags are supported in version >= v1.0.6 |
| 285 | func (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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected