2020-09-24 11:02:01 +00:00
|
|
|
n=0
|
2020-09-24 11:05:33 +00:00
|
|
|
while :
|
2020-09-24 11:02:01 +00:00
|
|
|
do
|
|
|
|
docker pull $2 \
|
|
|
|
&& docker tag $2 $1$2 \
|
|
|
|
&& docker push $1$2 && break # substitute your command here
|
|
|
|
n=$((n+1))
|
2020-09-24 11:05:33 +00:00
|
|
|
echo "retrying..$n"
|
2020-09-24 12:36:23 +00:00
|
|
|
sleep 1
|
2020-09-24 11:02:01 +00:00
|
|
|
done
|
|
|
|
|