Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Some simple scripts to sync Toolbox's images using Skopeo
#!/bin/bash
declare -a versions
versions=(29 31 32 33)
for version in "${versions[@]}"; do
src="registry.fedoraproject.org/f${version}/fedora-toolbox:${version}"
dest="fedora-toolbox-${version}"
echo "Create local copy from the remote image '${src}' into the directory '${dest}'"
skopeo copy "docker://${src}" "dir:${dest}"
done
#!/bin/bash
declare -a versions
versions=(29 31 32 33)
for version in "${versions[@]}"; do
src="fedora-toolbox-${version}"
dest="registry.fedoraproject.org/f${version}/fedora-toolbox:${version}"
echo "Copy from the directory '${src}' to the local registry '${dest}'"
skopeo copy "dir:${src}" "containers-storage:${dest}"
done
#!/bin/bash
declare -a versions
versions=(29 31 32 33)
for version in "${versions[@]}"; do
src="registry.fedoraproject.org/f${version}/fedora-toolbox:${version}"
dest="docker.io/juanje/fedora-toolbox:${version}"
echo "Copy from remote registry '${src}' to the remote registry '${dest}'"
skopeo copy "docker://${src}" "docker://${dest}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment