Documentation

esc
    Container Registry / Overview

    Pantech Container Registry

    Keep your container images next to the machines and clusters that run them, in a private registry that docker, podman, Kubernetes and your CI already speak.

    Pantech Container Registry stores your container images at registry.pantechdynamics.com. It speaks the OCI Distribution protocol, so docker, podman, buildx, crane, helm (OCI charts), containerd and Kubernetes work with it unchanged.

    Your organization has one namespace, such as acme. Each image lives in a repository in it, and each version of the image is a tag:

    text
    registry.pantechdynamics.com/acme/api/server:v1.4.2
                                 ^^^^ ^^^^^^^^^^ ^^^^^^
                            namespace repository  tag

    Repositories are private by default. Pulls from Pantech machines and Kubernetes clusters stay inside Pantech.

    Choose a namespace

    In the console, open Container registry, type a name under Choose your namespace and press Use this namespace. It is your images' address, shared by everyone in the organization.

    • 3 to 30 characters: lower-case letters, digits and single hyphens, starting with a letter.
    • Unique across Pantech. Some names, such as library, pantech, admin, api and docker, are reserved.
    Terminal
    $ pantech registry namespace set acme

    Log in

    The user name is pantech. The password is a Pantech API key, or a registry token made for one job.

    Terminal
    $ echo "$PANTECH_API_KEY" | docker login registry.pantechdynamics.com -u pantech --password-stdinLogin Succeeded

    With podman:

    Terminal
    $ echo "$PANTECH_API_KEY" | podman login registry.pantechdynamics.com -u pantech --password-stdin

    Or let the CLI log docker in with the key it already uses:

    Terminal
    $ pantech registry login

    Use --password-stdin rather than -p, so the key stays out of your shell history.

    What a login can do depends on the key. Pulling needs read, and pushing and deleting need write; an AI app's key also needs delete to delete. It is never more than the key's owner may do in the organization.

    Ten failed logins in a minute from one address block that address for 15 minutes.

    Push an image

    Tag the image with its address in your namespace, then push it:

    Terminal
    $ docker build -t registry.pantechdynamics.com/acme/api/server:v1.4.2 .$ docker push registry.pantechdynamics.com/acme/api/server:v1.4.2

    The repository api/server is created on the first push, private, if it does not exist. Owners and admins can turn this off in the namespace settings (Create repositories on push, create_on_push, or pantech registry namespace set acme --create-on-push=false). Then a repository must be created first:

    Terminal
    $ pantech registry repos create api/server --description "The API server"

    A repository name is lower-case letters and digits, joined by ., _, __ or -, in parts separated by /, such as web, api/server or tools/ci-runner. With the namespace, at most 255 characters. A tag is up to 128 letters, digits, _, . and -, not starting with . or -.

    Images for several platforms work as they do anywhere else:

    Terminal
    $ docker buildx build --platform linux/amd64,linux/arm64 \    -t registry.pantechdynamics.com/acme/api/server:v1.4.2 --push .

    Pull an image

    Terminal
    $ docker pull registry.pantechdynamics.com/acme/api/server:v1.4.2

    Or pin the exact image by its digest, which never changes:

    Terminal
    $ docker pull registry.pantechdynamics.com/acme/api/server@sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08

    The console lists each repository's tags with their digest, size, platforms, push time and last pull.

    Visibility

    A repository is private or public.

    • Private, the default: only logins from your organization can pull.
    • Public: anyone can pull without logging in. Pushing and deleting still need your organization's credentials.

    Make a repository public only for images you mean to share. Anything in it, including files left in a layer by mistake, can be read by anyone.

    Terminal
    $ pantech registry repos update api/server --visibility public

    A name you cannot see answers the same as one that does not exist, so nobody can find out which repositories another organization has.

    Immutable tags

    Turn on immutable tags for a repository and a tag, once pushed, cannot be moved to another image or deleted. v1.4.2 then always means the same image, which is what you want for releases.

    Terminal
    $ pantech registry repos update api/server --immutable-tags

    A push that tries to move an immutable tag is undone: the tag goes back to the image it had, and owners and admins are emailed (registry.immutable_tag_reverted). Push a new tag instead. Deleting a tag in such a repository is refused with TAG_IMMUTABLE.

    Retention rules

    Old tags pile up in a busy CI. A repository's retention rules clean them up once a day:

    RuleWhat it does
    keep_lastKeep the newest N tags, from 1 to 1,000, and delete older ones
    untagged_after_daysDelete images with no tag once they are older than D days, from 1 to 365
    keep_patternNever delete tags matching this pattern, such as v* or release-*

    Each rule is optional. With none, nothing is deleted.

    Terminal
    $ pantech registry repos update api/server --keep-last 50 --untagged-after-days 7 --keep-pattern "v*"

    Tags matching keep_pattern are kept whatever the other rules say, and so are immutable tags.

    Storage

    The namespace's page shows how much storage it uses, against its limit, and each repository's share.

    A layer shared by several images, such as a common base image, is counted once for the organization. So the namespace's total is often smaller than the sum of its repositories.

    Storage is measured, but not charged yet.

    Delete images and repositories

    Delete one tag:

    Terminal
    $ pantech registry tags delete api/server v1.4.1

    Delete a whole repository and every image in it:

    Terminal
    $ pantech registry repos delete api/server

    Both need an owner or admin, and an API key with the write scope (an AI app's key also needs delete). They cannot be undone.

    The space is freed by the next garbage collection, which runs every night. During it, pushes are refused for a few minutes; pulls keep working. Plan release pushes around it if you can, and retry a push that fails then.

    Who can do what

    Any member can see the namespace, repositories, tags and the registry tokens' names. Owners and admins can choose the namespace, create, change and delete repositories, delete tags, and create and revoke registry tokens. Access policies can narrow or widen that with the registry:* actions, such as registry:Pull, registry:Push and registry:DeleteImage, per repository.

    A suspended account can still pull and delete, but not push.

    Limits

    LimitDefault
    Repositories per organization100
    Storage per organization50 GiB
    Registry tokens per organization50
    One layer10 GiB
    Logins and token requests per address per minute120

    At the storage limit, new pushes are refused (docker reports them as denied) and owners and admins are emailed (registry.storage.limit_reached). Pulls keep working. The same happens to a push that would create a repository past the repository limit. Delete old images, or set retention rules, then wait for the next garbage collection. Contact support to raise a limit.

    Vulnerability scanning, image signing and pull-through caches of public registries are not available yet.

    From code

    Go
    repo, err := c.Registry.CreateRepository(ctx, pantech.CreateRegistryRepositoryRequest{
    	Name:          "api/server",
    	ImmutableTags: pantech.Ptr(true),
    })
    if err != nil {
    	return err
    }
    fmt.Println(repo.FullName) // registry.pantechdynamics.com/acme/api/server
    
    tags, err := c.Registry.ListTags(ctx, repo.ID, nil)

    Every endpoint is in the Container Registry API reference.

    Next

    Was this page helpful?

    Updated