@@ -163,12 +163,21 @@ attestations using `regctl`. You must [install
1631631 . Set environment variables for your specific environment. Replace the
164164 placeholders with your actual values.
165165
166+ In this example, you use a Docker username to represent a member of the Docker
167+ Hub organization that the DHI repositories are mirrored in. Prepare a
168+ [ personal access token (PAT)] ( ../../security/access-tokens.md ) for the user
169+ with ` read only ` access. Alternatively, you can use an organization namespace and
170+ an [ organization access token
171+ (OAT)] ( ../../enterprise/security/access-tokens.md ) to sign in to Docker Hub, but OATs
172+ are not yet supported for ` registry.scout.docker.com ` .
173+
166174 ``` console
167175 $ export DOCKER_USERNAME="YOUR_DOCKER_USERNAME"
168176 $ export DOCKER_PAT="YOUR_DOCKER_PAT"
169177 $ export DOCKER_ORG="YOUR_DOCKER_ORG"
170178 $ export DEST_REG="registry.example.com"
171179 $ export DEST_REPO="mirror/dhi-python"
180+ $ export DEST_REG_USERNAME="YOUR_DESTINATION_REGISTRY_USERNAME"
172181 $ export DEST_REG_TOKEN="YOUR_DESTINATION_REGISTRY_TOKEN"
173182 $ export SRC_REPO="docker.io/${DOCKER_ORG}/dhi-python"
174183 $ export SRC_ATT_REPO="registry.scout.docker.com/${DOCKER_ORG}/dhi-python"
@@ -181,7 +190,7 @@ attestations using `regctl`. You must [install
181190 ``` console
182191 $ echo $DOCKER_PAT | regctl registry login -u "$DOCKER_USERNAME" --pass-stdin docker.io
183192 $ echo $DOCKER_PAT | regctl registry login -u "$DOCKER_USERNAME" --pass-stdin registry.scout.docker.com
184- $ echo $DEST_REG_TOKEN | regctl registry login -u "$DOCKER_USERNAME " --pass-stdin "$DEST_REG"
193+ $ echo $DEST_REG_TOKEN | regctl registry login -u "$DEST_REG_USERNAME " --pass-stdin "$DEST_REG"
185194 ```
186195
1871963 . Mirror the image and attestations using ` --referrers ` and referrer endpoints:
0 commit comments