Skip to content

Possible incorrect advice re Dockerfile LABEL #42465

@alexbdaniel

Description

@alexbdaniel

Code of Conduct

What article on docs.github.com is affected?

Hello, related to the Working with the container registry article

Suppose you open a docker image not linked to an repository. GitHub provides instructions on linking the two:

To locally connect your container image to a repository, you must add this line to your Dockerfile:
LABEL org.opencontainers.image.source https://github.com/OWNER/REPO

Should the key be separated from the value with an equals sign? ie LABEL org.opencontainers.image.source=https://github.com/OWNER/REPO

Thank you and sorry if this is not the right place to lodge these issues. I searched elsewhere.

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

Not directly related but is viewable on the page when you look at a package.
It might also be helpful to note that labels can be added in the command line with the --label argument.

Additional information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamtriageDo not begin working on this issue until triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions