docker pull frangal/rpi-images-builder:latest
git clone https://github.com/FrangaL/images-builder.git
cd images-builder
docker-compose --compatibility up -d --build
# docker-composer
wget https://git.io/rpi-images-builder.yml
docker-compose -f rpi-images-builder.yml --compatibility up -d
# docker run
docker run --privileged -it -v /dev:/dev -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
--name rpi-images -h rpi-images --cap-add SYS_ADMIN \
--tmpfs /tmp --tmpfs /run --tmpfs /run/lock frangal/rpi-images-builder:latest
docker exec -it rpi-images git pull
docker exec -it rpi-images bash -c "COMPRESS=xz ./rpi-img-builder.sh"
docker exec -it rpi-images sh -c "ls *.img.xz"
docker cp rpi-images:/images/debian-buster-lite-arm64.img.xz .