File tree Expand file tree Collapse file tree
content/manuals/dhi/how-to Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1761782 . 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
1851873 . Mirror the image and attestations using ` --referrers ` and referrer endpoints:
You can’t perform that action at this time.
0 commit comments