Skip to content

The ignore version specification for Docker is not clear #23340

@dannystaple

Description

@dannystaple

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#ignore

What part(s) of the article would you like to see updated?

The article mentions that "If you want to define a range, use the standard pattern for the package manager". However for Dockerfiles and docker containers, there doesn't seemed to be a defined syntax for this, including in the Docker/Dockerfile documentation. After much experimentation, the following was found to work:

versions:
          - "~> 1.3.0, < 1.3.6"

This should be documented, with a reference to the versioning this uses, or an example like the above.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamstaleThere is no recent activity on this issue or pull request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions