envs

Docker Hub — registry login

docker/hub · version 1

envs add docker/hub

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
DOCKERHUB_USERNAME required secret Docker's own login action puts this in the non-secret store, so Docker does not treat it as a credential. It is still half of the login pair, and this registry keeps both halves together rather than splitting one login across two levels.. where to get it
DOCKERHUB_TOKEN required secret A personal access token, not the account password, which Docker says not to use here. Docker says to treat tokens like passwords and never commit them. The expiry cannot be edited, so a new expiry means a new token.. Shape ^dckr_pat_[A-Za-z0-9_-]{10,}$. where to get it

The JSON the CLI reads