1767de2a63bbab44d9daefe00bf3e55c00cc1e92
Docker RO effort
Create base image, simpel
dd if=./2021-01-11-raspios-buster-armhf-lite.img of=/dev/sda status=progress touch ssh -> boot partition sudo apt-get update sudo apt-get upgrade
making a RO overlay root fs => enable it in raspi-config
Mounting root as RW?
sudo losetup -f /dev/mmcblk0p2 sudo mount -o rw /dev/loop0 /mnt
If you need to mount / update
chroot /mnt mount -t proc /proc proc/ mount --rbind /sys sys/ mount --rbind /dev dev/
Docker's overlay2 needs to be a tmpfs, in fact, docker wants to do some
mambo-jumbo inside and does not want overlay, need tmpfs
sudo mount -t tmpfs tmpfs /var/lib/docker need to copy contents of overlay2?
sudo mount -t tmpfs tmpfs /var/lib/docker sudo cp -r /mnt/var/lib/docker /var/lib/
cp -r /var/lib/docker/* /mnt/var/lib/docker
1, UART > HW 2, GSM - generic - ip config / reboot / setup / 3, wahtchdog mod (added?) 4, BalenaOS, alternativy
Description
Languages
Shell
100%