#!/bin/bash

cd .docker-cache/openmined
ls | grep .tar.gz | xargs -L 1 -I {} tar -xf {}
ls | grep -v .tar.gz | xargs -L 1 -I {} docker load -i {}
ls | grep -v .tar.gz | xargs rm

#!/bin/bash
mkdir .docker-cache || true
mkdir .docker-cache/openmined || true

cd .docker-cache/openmined
ls | grep .tar.gz | xargs -L 1 -I {} tar -xf {}
ls | grep -v .tar.gz | xargs -L 1 -I {} docker load -i {}
ls | grep -v .tar.gz | xargs rm

Create cache directories on load for cold boot
Create cache directories on load for cold boot
