Skip to content

Commit 65717e0

Browse files
committed
Script to create copies of images
1 parent 2435349 commit 65717e0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

copy-images.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)