You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

5 years ago
#!/bin/bash -e
set -x
5 years ago
uname -m
5 years ago
echo "Removing Docker"
docker ps
5 years ago
docker images -a
5 years ago
du -sh /var/lib/docker/overlay2
5 years ago
sudo systemctl stop docker
5 years ago
sudo apt-get purge docker-ce docker-ce-cli containerd.io moby-engine moby-cli
sudo rm -rf /var/lib/docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
docker --version
docker ps
5 years ago
docker images -a
sudo rm -rf /etc/docker/daemon.json
echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json
5 years ago
5 years ago
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)
5 years ago
echo "Pulling images in docker"
while IFS= read -r image; do
5 years ago
docker pull --platform=linux/arm/v7 $image
5 years ago
done <<< "$IMAGES"
docker images -a
5 years ago
5 years ago
du -sh /var/lib/docker/overlay2
# ls dockerpi
# ls dockerpi/var/lib/tor
# docker save $IMAGES -o umbrel-docker-images.tar
# du -h umbrel-docker-images.tar
# docker save $IMAGES | gzip > umbrel-docker-images.tar.gz
# du -h umbrel-docker-images.tar.gz