We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2435349 commit 65717e0Copy full SHA for 65717e0
1 file changed
copy-images.sh
@@ -0,0 +1,21 @@
1
+#!/bin/bash
2
+
3
+# Source image
4
+source_image="localhost:5000/hello-world-v1:latest"
5
6
+# Registry URL
7
+registry_url="localhost:5000"
8
9
+# Iterating from 2 to 101
10
+for counter in {2..101}
11
+do
12
+ # Destination image name
13
+ dest_image="$registry_url/hello-world-v$counter:latest"
14
15
+ # Skopeo copy command
16
+ skopeo copy --dest-tls-verify=false "docker-daemon:$source_image" "docker://$dest_image"
17
18
+ # Optional: Echo to track progress
19
+ echo "Copied to $dest_image"
20
+done
21
0 commit comments