/Docker-piCore

creating piCore docker image

Primary LanguageDockerfileApache License 2.0Apache-2.0

Docker-piCore

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.

  1. Download the latest picore image from here => http://www.tinycorelinux.net/ports.html
  2. using Raspberry Pi Imager create boot media
  3. after creation remount boot media ( usually found under /media// )
  4. open folder piCore-13
  5. mkdir ~/docker-picore
  6. cp ./rootfs-picore-13.0.3.gz ~/docker-picore/rootfs-picore-13.0.3.gz
  7. cd ~/docker-picore
  8. gunzip rootfs-picore-13.0.3.gz
  9. mv rootfs-picore-13.0.3 rootfs-picore-13.0.3.cpio
  10. mkdir output
  11. cd output
  12. sudo cpio -idv < ../rootfs-picore-13.0.3.cpio
  13. tar -cvzf ../rootfs-picore-13.0.3.tgz .
  14. cd ..
  15. docker import ./rootfs-picore-13.0.3.tgz
  16. docker images <= find the latest one with blank tags
  17. 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.