Like a lot of other Mac users, I run boot2docker to run Docker on my laptop. Boot2docker is a tiny Linux VM that is usually run headless under Oracle’s VirtualBox. Boot2docker runs a relatively unknown Linux distribution called Tiny Core Linux. Tiny Core is pretty neat, but it’s not obvious how to install extra packages like you might easily do on other Linux distributions. Here’s how to install extra packages on your boot2docker instances.
The first step is to figure out whether the package you want is already been packaged. To do this check the Tiny Core Linux software repository page where there are currently a couple of hundred packages already made. I often need to copy files to and from a boot2docker instance and the easiest way to do that is using rsync, so this what I’ll show being installed.
The second step is to determine the name of the package binary from the repository web page and install it using the package install tool. Unlike larger Linux distributions, Tiny Core Linux does not have a searchable package database so you will need to figure out the package name. Just choosing $PACKAGENAME.tcz is going to be a good guess. The package name for rsync is rsync.tcz so let’s install that using tce-load:
Finally, let’s test rsync has been installed:
Rsync has been successfully installed on your boot2docker instance.