Skip to content

Commit 932d893

Browse files
committed
docs(readme): update sha256 instructions
1 parent 9b42592 commit 932d893

1 file changed

Lines changed: 11 additions & 46 deletions

File tree

README.md

Lines changed: 11 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,71 +1189,36 @@ If you look at your docker registry, you should see:
11891189
<br />
11901190

11911191
> [!NOTE]
1192-
> If you push the manifest to your online registry, and notice that the image contains multiple of the same architecture images; you need to remove the manifest and re-create it using:
1192+
> If you push the manifest to your online registry, and notice that the image contains duplicate architecture images; you need to remove the manifest and re-create it using:
11931193
>
11941194
> ```shell
11951195
> docker manifest rm ghcr.io/aetherinox/ubuntu:nobel
11961196
> ```
11971197

1198-
<br />
1199-
1200-
```shell
1201-
# Example 2 - Development - (using tag)
1202-
docker manifest create ghcr.io/aetherinox/ubuntu:noble-development \
1203-
--amend ghcr.io/aetherinox/ubuntu:noble-development-amd64 \
1204-
--amend ghcr.io/aetherinox/ubuntu:noble-development-arm64
1205-
```
1206-
1207-
1208-
1209-
1210-
1211-
1212-
1213-
1214-
1215-
1216-
12171198
<br />
12181199

12191200
If you want to create the manifest using the `SHA256`, you can use one of these altnerative commands:
12201201

12211202
```shell
12221203
# Example 1 - Stable - (using sha256 hash)
1223-
docker manifest create ghcr.io/aetherinox/ubuntu:noble-development \
1224-
--amend ghcr.io/aetherinox/ubuntu@sha256:a6a5bdba912df6247c663c04d214ca4ef2e3b5d6127ac117dee6c28d9b5c6f35 \
1225-
--amend ghcr.io/aetherinox/ubuntu@sha256:9b977c55f5fadf7e5601b908dd187597ea4865c5f5e6e232d73f7053d6477ae3
1226-
1227-
# Example 2 - Development - (using sha256 hash)
1228-
docker manifest create ghcr.io/aetherinox/ubuntu:noble-development \
1229-
--amend ghcr.io/aetherinox/ubuntu@sha256:2819d07ccce30dcad5729b66fa0268660b7da9e304ef75694e08953ca5c1a31e \
1230-
--amend ghcr.io/aetherinox/ubuntu@sha256:d3157db4bc9190e7926f39820a373bf04379704382de741fae272771eb587c45
1204+
docker manifest create ghcr.io/aetherinox/ubuntu:noble \
1205+
--amend ghcr.io/aetherinox/ubuntu@sha256:9b977c55f5fadf7e5601b908dd187597ea4865c5f5e6e232d73f7053d6477ae3 \
1206+
--amend ghcr.io/aetherinox/ubuntu@sha256:a6a5bdba912df6247c663c04d214ca4ef2e3b5d6127ac117dee6c28d9b5c6f35
12311207
12321208
# Push Manifest
1233-
docker manifest push ghcr.io/aetherinox/ubuntu:noble-development
1234-
1235-
# OUTPUT
1236-
Created manifest list ghcr.io/aetherinox/ubuntu:noble-development
1237-
```
1238-
1239-
<br />
1240-
1241-
After completing one of the commands above, you should see:
1242-
1243-
```shell
1209+
docker manifest push ghcr.io/aetherinox/ubuntu:noble
12441210
12451211
1246-
# Push manifest changes to registry
1247-
docker manifest push ghcr.io/aetherinox/ubuntu:latest
12481212
1213+
# Example 2 - Development - (using sha256 hash)
1214+
docker manifest create ghcr.io/aetherinox/ubuntu:noble-development \
1215+
--amend ghcr.io/aetherinox/ubuntu@sha256:d3157db4bc9190e7926f39820a373bf04379704382de741fae272771eb587c45 \
1216+
--amend ghcr.io/aetherinox/ubuntu@sha256:2819d07ccce30dcad5729b66fa0268660b7da9e304ef75694e08953ca5c1a31e
12491217
1250-
sha256:a0ec1af9d2d9f4c2f45ab1f0cf9c5d60f8dc2660b1eb1011a0636b971a804c53
1218+
# Push Manifest
1219+
docker manifest push ghcr.io/aetherinox/ubuntu:noble-development
12511220
```
12521221

1253-
1254-
1255-
1256-
12571222
<br />
12581223

12591224
If you go back to your registry; you should now see multiple new entries, all with different tags. Two of the images are your old `amd64` and `arm64` images, and then you should have your official one with the four tags specified above. You can delete the two original images if you do not want them.

0 commit comments

Comments
 (0)