creating piCore docker image
Building on the work of Benjamin Henrion (http://www.zoobab.com/resume)
All of this work was completed on a Raspberry Pi 4B 8GB (Max). Current stable version of piCore is 13.0.3 Please change values as needed.
- Download the latest picore image from here => http://www.tinycorelinux.net/ports.html
- using Raspberry Pi Imager create boot media
- after creation remount boot media ( usually found under /media// )
- open folder piCore-13
- mkdir ~/docker-picore
- cp ./rootfs-picore-13.0.3.gz ~/docker-picore/rootfs-picore-13.0.3.gz
- cd ~/docker-picore
- gunzip rootfs-picore-13.0.3.gz
- mv rootfs-picore-13.0.3 rootfs-picore-13.0.3.cpio
- mkdir output
- cd output
- sudo cpio -idv < ../rootfs-picore-13.0.3.cpio
- tar -cvzf ../rootfs-picore-13.0.3.tgz .
- cd ..
- docker import ./rootfs-picore-13.0.3.tgz
- docker images <= find the latest one with blank tags
- docker tag fighne/pi-core-13.0.3:latest
Having created the rootfs image, now you can use the rootfs system and build a running docker image with 'tc' user by looking in the base directory here and using the dockerfile there.