mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-23 01:13:09 +01:00
Change add registry
This commit is contained in:
@@ -96,6 +96,7 @@ clean_dockers() {
|
|||||||
# Place Holder for cleaning up old docker images
|
# Place Holder for cleaning up old docker images
|
||||||
echo "Trying to clean up old dockers."
|
echo "Trying to clean up old dockers."
|
||||||
docker system prune -a -f
|
docker system prune -a -f
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clone_to_tmp() {
|
clone_to_tmp() {
|
||||||
@@ -289,7 +290,6 @@ update_dockers() {
|
|||||||
docker rm so-dockerregistry
|
docker rm so-dockerregistry
|
||||||
echo "Copying the new dockers over"
|
echo "Copying the new dockers over"
|
||||||
tar xvf $AGDOCKER/registry.tar -C /nsm/docker-registry/docker
|
tar xvf $AGDOCKER/registry.tar -C /nsm/docker-registry/docker
|
||||||
docker load -i $AGDOCKER/registry_image.tar
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# List all the containers
|
# List all the containers
|
||||||
@@ -370,6 +370,10 @@ update_dockers() {
|
|||||||
fi
|
fi
|
||||||
# Cleanup on Aisle 4
|
# Cleanup on Aisle 4
|
||||||
clean_dockers
|
clean_dockers
|
||||||
|
echo "Add Registry back if airgap"
|
||||||
|
if [[ $is_airgap ]]; then
|
||||||
|
docker load -i $AGDOCKER/registry_image.tar
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user