|
|
@ -5,32 +5,38 @@ uname -m |
|
|
|
|
|
|
|
echo "Removing Docker" |
|
|
|
docker ps |
|
|
|
docker --version |
|
|
|
sudo apt-get purge docker-ce docker-ce-cli containerd.io moby-engine |
|
|
|
docker images -a |
|
|
|
du -h /var/lib/docker/overlay2 |
|
|
|
sudo systemctl restart stop |
|
|
|
sudo apt-get purge docker-ce docker-ce-cli containerd.io moby-engine moby-cli |
|
|
|
sudo rm -rf /var/lib/docker |
|
|
|
|
|
|
|
ls /var/lib |
|
|
|
|
|
|
|
curl -fsSL https://get.docker.com -o get-docker.sh |
|
|
|
sudo sh get-docker.sh |
|
|
|
docker --version |
|
|
|
docker ps |
|
|
|
docker images -a |
|
|
|
sudo rm -rf /etc/docker/daemon.json |
|
|
|
echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json |
|
|
|
|
|
|
|
ls /var/lib/docker |
|
|
|
ls /var/lib/docker/overlay2 |
|
|
|
|
|
|
|
ls /var/lib |
|
|
|
|
|
|
|
wget -q "https://raw.githubusercontent.com/getumbrel/umbrel-compose/master/docker-compose.yml" |
|
|
|
IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g' | sed '/^$/d;s/[[:blank:]]//g' | sort | uniq) |
|
|
|
|
|
|
|
# wget -q "https://raw.githubusercontent.com/getumbrel/umbrel-compose/master/docker-compose.yml" |
|
|
|
# IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g' | sed '/^$/d;s/[[:blank:]]//g' | sort | uniq) |
|
|
|
# echo "List of images to download: $IMAGES" |
|
|
|
|
|
|
|
echo "Pulling images in docker" |
|
|
|
while IFS= read -r image; do |
|
|
|
docker run --rm -t -v docker-dir:/var/lib/docker docker:stable-dind docker pull --platform=linux/arm/v7 $image |
|
|
|
done <<< "$IMAGES" |
|
|
|
docker images -a |
|
|
|
|
|
|
|
# echo "Pulling images in docker" |
|
|
|
# while IFS= read -r image; do |
|
|
|
# docker run --rm -t -v docker-dir:/var/lib/docker docker:stable-dind docker pull --platform=linux/arm/v7 $image |
|
|
|
# done <<< "$IMAGES" |
|
|
|
# docker ps |
|
|
|
# ls docker-dir |
|
|
|
|
|
|
|
ls /var/lib/docker |
|
|
|
ls /var/lib/docker/overlay2 |
|
|
|
du -h /var/lib/docker/overlay2 |
|
|
|
# ls dockerpi |
|
|
|
# ls dockerpi/var/lib/tor |
|
|
|
# docker save $IMAGES -o umbrel-docker-images.tar |
|
|
|