Skip to content

Commit 9c4f1fa

Browse files
authored
Add skopeo usage examples for architecture-specific pulls
Added instructions for using skopeo to copy multi-platform container images with architecture overrides.
1 parent f998cc5 commit 9c4f1fa

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

docs/self_hosted.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,26 @@ If you have not yet received the GitNotebooks container image, you can do so by
4747

4848
This is a multi-platform container image. So if you're pulling the image onto a machine with a different architecture than the one used in the deployment (e.g. to mirror the image to your own container registy), take care to make sure the correct platform is used when pulling the image, otherwise you will run into a `exec format error`.
4949

50+
```bash
51+
# linux/arm64
52+
skopeo copy \
53+
--src-creds "$SRC_USER:$SRC_PASS" \
54+
--dest-creds "$DEST_USER:$DEST_PASS" \
55+
--override-os=linux \
56+
--override-arch=arm64 \
57+
docker://docker.io/gitnotebooks/self-hosted:1.3.5 \
58+
docker://registry.example.com/gitnotebooks/self-hosted:1.3.5-arm64
59+
60+
# linux/amd64
61+
skopeo copy \
62+
--src-creds "$SRC_USER:$SRC_PASS" \
63+
--dest-creds "$DEST_USER:$DEST_PASS" \
64+
--override-os=linux \
65+
--override-arch=amd64 \
66+
docker://docker.io/gitnotebooks/self-hosted:1.3.5 \
67+
docker://registry.example.com/gitnotebooks/self-hosted:1.3.5-amd64
68+
```
69+
5070
</div>
5171

5272
## Choosing an Endpoint { #choosing-an-endpoint }

0 commit comments

Comments
 (0)