Skip to content

Linter is not recognizing the models section #310

@distantcam

Description

@distantcam

Version

> docker run -t --rm -v .:/app zavoloklom/dclint -v
3.1.0

YAML file where the error occurs

name: ai

models:
  llm:
    model: ai/smollm2

Command used to run

docker run -t --rm -v .:/app zavoloklom/dclint .

Optional configuration (if different from the default)

rules:
  no-unbound-port-interfaces: 0
  services-alphabetical-order: 0
  service-image-require-explicit-tag: 0
  service-keys-order: 2

Current behavior (console output)

 3:1     warning  Property "models" is out of order. Expected order is: version, name, include, services, networks, volumes, secrets, configs.  top-level-properties-order

✖ 1 problems (0 errors, 1 warnings)

Expected behavior

models property should be recognized.
https://docs.docker.com/ai/compose/models-and-compose/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions