Merge "Retry nerdctl tag command"
diff --git a/de/heat-templates/scripts/functions.sh b/de/heat-templates/scripts/functions.sh
index 8ae0c0b..4524075 100644
--- a/de/heat-templates/scripts/functions.sh
+++ b/de/heat-templates/scripts/functions.sh
@@ -340,7 +340,10 @@
for image in $(docker container run --rm --name ucp -v /var/run/docker.sock:/var/run/docker.sock ${DOCKER_UCP_IMAGE} images --list); do
pull_image "${image_prefix}/${image##*/}"
if [[ $KUBERNETES_CONTAINER_RUNTIME == "crio" ]]; then
- nerdctl --address unix:///run/containerd/containerd.sock -n k8s.io tag ${image_prefix}/${image##*/} mirantis/${image##*/}
+ function retry_nerdctl_tag {
+ nerdctl --address unix:///run/containerd/containerd.sock -n k8s.io tag ${image_prefix}/${image##*/} mirantis/${image##*/}
+ }
+ retry 10 "Failed to tag image" retry_nerdctl_tag
fi
docker tag ${image_prefix}/${image##*/} mirantis/${image##*/}
done