Skip to content

Commit 9dcb22b

Browse files
feedback
Signed-off-by: Craig <craig.osterhout@docker.com>
1 parent 5038f80 commit 9dcb22b

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

content/manuals/dhi/how-to/mirror.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,20 +166,22 @@ attestations using `regctl`. You must [install
166166
```console
167167
$ export DOCKER_USERNAME="YOUR_DOCKER_USERNAME"
168168
$ export DOCKER_PAT="YOUR_DOCKER_PAT"
169+
$ export DOCKER_ORG="YOUR_DOCKER_ORG"
169170
$ export DEST_REG="registry.example.com"
170171
$ export DEST_REPO="mirror/dhi-python"
171-
$ export SRC_REPO="docker.io/<your-org>/dhi-python"
172-
$ export SRC_ATT_REPO="registry.scout.docker.com/<your-org>/dhi-python"
172+
$ export DEST_REG_TOKEN="YOUR_DESTINATION_REGISTRY_TOKEN"
173+
$ export SRC_REPO="docker.io/${DOCKER_ORG}/dhi-python"
174+
$ export SRC_ATT_REPO="registry.scout.docker.com/${DOCKER_ORG}/dhi-python"
173175
$ export TAG="3.13-alpine3.21"
174176
```
175177

176178
2. Sign in via `regctl` to Docker Hub, the Scout registry that contains
177179
the attestations, and your destination registry.
178180

179181
```console
180-
$ regctl registry login -u "$DOCKER_USERNAME" --pass-stdin docker.io
181-
$ regctl registry login -u "$DOCKER_USERNAME" --pass-stdin registry.scout.docker.com
182-
$ regctl registry login "$DEST_REG
182+
$ echo $DOCKER_PAT | regctl registry login -u "$DOCKER_USERNAME" --pass-stdin docker.io
183+
$ 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"
183185
```
184186

185187
3. Mirror the image and attestations using `--referrers` and referrer endpoints:

0 commit comments

Comments
 (0)