Skip to content

Default Containerized Application Labels used to document the application and/or image

Notifications You must be signed in to change notification settings

projectatomic/ContainerApplicationGenericLabels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Repository files navigation

Standard Container/Application Identifiers

Default Containerized Application Labels/Annotations/Ids used to document the application and/or image

With the introduction of the Atomic command, we are accessing container image meta data to describe the purpose of the image or the application defined by the image.

We would like to get consensus on default names. Proposals have been made to namespace the label names defined in Docker.

But we believe there should be some generic toplevel names defined that are not vendor specific, or distribution specific.

If you would like to see additional names and descriptions added please open issues and send pull requests to update this readme.

Overview

The following types of data are being considered:

  1. Labels used to describe how to use the application/image
NameDescription
helpCommand to run the help command of the image
runCommand to run the image
run_opts_filePath to a file containing options that will be used in 'run' command in place of ${RUN_OPTS}
uninstallCommand to uninstall the image
installCommand to install the image
stopCommand to execute before stopping container
debugCommand to run the image with debugging turned on
  1. Labels Names used to describe the application/image
NameDescription
nameName of the Image
versionVersion of the image
releaseRelease Number for this version
architectureArchitecture for the image
build-dateDate/Time image was built as RFC 3339 date-time
vendorOwner of the image
urlUrl with more information on the image
summaryShort Description of the image
descriptionDetailed description of the image
vcs-typeThe type of version control used by the container source. Generally one of git, hg, svn, bzr, cvs
vcs-urlURL of the version control repository
vcs-refA 'reference' within the version control repository; e.g. a git commit, or a subversion branch
authoritative-source-urlThe authoritative location in which the image is published
distribution-scopeIntended scope of distribution for image (see below for possible values)
changelog-urlURL of a page containing release notes for the image
  1. Possible values of distribution-scope field
NameDescription
privateNo public redistribution intended
authoritative-source-onlyRedistribution only from the source listed in the 'authoritative-source-url' label
restrictedRedistribution only with permission
publicNo redistribution limits beyond licenses
  1. Custom labels may be defined by a namespace prefix using reverse DNS notation of a domain controlled by the author. For example, com.redhat.access.

     LABEL io.openshift.expose-services="8080:http" \ io.openshift.tags="builder,nodejs,nodejs010" 

Details on Labels

authoritative-source-url

  • The authoritative location the image is published by the owner.
  • In combination with the 'name' label, this tells a user where to go and look for official updates and current versions of the image, regardless of the local tags.

distribution-scope

  • The intended scope of distribution for the image.
  • Allows a user to define the intended scope of distribution. This addresses the end-user case of internal builds vs. public content and the use case of a vendor like Red Hat that provides content streams under subscription agreements - which is different from the license(s) of the image content.
  • In combination with the 'authoritative-source-url' and 'name' labels allows automatic redirect to the authoritative source.

Signing Server Metadata "sigstore" Image

Signing server metadata may be served by a special image in a repository. The image shall be named "sigstore" and contain the following labels, all required:

NameDescription
sigstore-urlThe signature server URL, including port
sigstore-typeSignature server type, either "docker" (static web server) or "atomic" (Atomic Registry and OpenShift API)
pubkey-idThe public key ID in the form of an email address
pubkey-fingerprintThe public key fingerprint, typically a long hexidecimal string
pubkey-urlThe URL to download the public key

Example Dockerfile:

FROM scratch LABEL sigstore-url="sigstore.example.com:8443" \ sigstore-type="docker" \ pubkey-id="[email protected]" \ pubkey-fingerprint="B3B04F8CF186436EF8F1CDAD7C6ACC9EE3A31016" \ pubkey-url="https://pgp.mit.edu/pks/lookup?op=get&search=0xFD5EB4DB480717ED" 

About

Default Containerized Application Labels used to document the application and/or image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 18