Skip to content

Commit

Permalink
Script to create copies of images
Browse files Browse the repository at this point in the history
  • Loading branch information
vpereira committed Dec 20, 2023
1 parent 2435349 commit 65717e0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions copy-images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Source image
source_image="localhost:5000/hello-world-v1:latest"

# Registry URL
registry_url="localhost:5000"

# Iterating from 2 to 101
for counter in {2..101}
do
# Destination image name
dest_image="$registry_url/hello-world-v$counter:latest"

# Skopeo copy command
skopeo copy --dest-tls-verify=false "docker-daemon:$source_image" "docker://$dest_image"

# Optional: Echo to track progress
echo "Copied to $dest_image"
done

0 comments on commit 65717e0

Please sign in to comment.