td-shi / docker-tinycore

Tiny Core Linux Docker image building scripts and Dockerfile

Home Page:https://hub.docker.com/r/tdshi/tinycore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tiny Core Linux Docker Image

docker-tinycore

Docker Pulls Docker Image Size (tag)

This provides a very small CLI system image based on Tiny Core Linux developed at The Core Project. It contains following Core x86/x86_64 packages

  • rootfs.gz (or rootfs64.gz): contains base system binaries and a file system layout.
  • squashfs-tools.tcz: contains a squashfs builder and expander.

These original packages are found under

and Dockerfile of these images are found at

Installation

The easiest way to install the image is pulling it from Docker Hub repositories like following:

docker pull tdshi/tinycore:latest

The latest is "13.1-x86_64". The other tag is "13.1-x86".

Usage

Just run:

docker run -it tdshi/tinycore:latest

The latest is "13.1-x86_64". The other tag is "13.1-x86".

To install tcz packages into the container and use them, please run tce-load command in it like following:

tce-load -wic bash.tcz

Or run the container with privilege mode like following:

docker run -it --privileged tdshi/tinycore:latest

And, once it starts with privilege mode, you can run the package manager like

tce-ab

Building an image based on this image

Now Docker doesn't support privilege mode at image building but this image includes patched tce-load which works without privilege mode by using unsquashfs internally instead of mounting squashfs on a loop back device so to install packages, please use tce-load with -c option

If you need an example, please see :

Tiny Core Linux x86 and x86_64 Docker Image Builder

Dockerfile and helper scripts for building a very small CLI system image based on Tiny Core Linux developed at The Core Project. It builds Core 13.1 x86 and x86_64 image by using following packages which were converted those archive type from The Core Project packages.

  • rootfs.tar.gz: contains base system binaries and a file system layout
  • rootfs64.tar.gz: contains base system binaries and a file system layout
  • squashfs-tools.tar.gz: contains a squashfs builder and expander

Those original packages are found under http://tinycorelinux.net/13.x/x86 and http://tinycorelinux.net/13.x/x86_64

How to build the image

Just run

make all

To clean up the directory, run

make clean

There is something you should be aware of. The xarg used in this Makefile (clean up) uses the -r option, which is a GNU extension.

License

rootfs.tar.gz,rootfs64.tar.gz, squashfs-tools.tar.gz and tce-load.patch are under GPLv2. The other build scripts are under MIT.

Original author

  • tatsushid :: origin
  • bensuperpc :: fork

About

Tiny Core Linux Docker image building scripts and Dockerfile

https://hub.docker.com/r/tdshi/tinycore


Languages

Language:Dockerfile 51.2%Language:Shell 25.0%Language:Makefile 23.8%