mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Run docker pull once more if the first time fails
This commit is contained in:
@@ -636,7 +636,11 @@ docker_seed_registry() {
|
|||||||
# Pull down the trusted docker image
|
# Pull down the trusted docker image
|
||||||
set_progress_str "$percent" "Downloading $i"
|
set_progress_str "$percent" "Downloading $i"
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if ! docker pull --disable-content-trust=false docker.io/soshybridhunter/"$i"; then
|
||||||
|
sleep 5
|
||||||
docker pull --disable-content-trust=false docker.io/soshybridhunter/"$i"
|
docker pull --disable-content-trust=false docker.io/soshybridhunter/"$i"
|
||||||
|
fi
|
||||||
# Tag it with the new registry destination
|
# Tag it with the new registry destination
|
||||||
docker tag soshybridhunter/"$i" "$HOSTNAME":5000/soshybridhunter/"$i"
|
docker tag soshybridhunter/"$i" "$HOSTNAME":5000/soshybridhunter/"$i"
|
||||||
docker push "$HOSTNAME":5000/soshybridhunter/"$i"
|
docker push "$HOSTNAME":5000/soshybridhunter/"$i"
|
||||||
|
|||||||
Reference in New Issue
Block a user