Adding Docker to a Yocto image
We don’t need to install Ubuntu on a Raspberry Pi 4 to take advantage of Docker. Buildroot and Yocto are both able to build Docker for embedded targets. Adding Docker to a Yocto image is straightforward. Simply append the package to an existing image. We will leverage the rpi-test-image
from the Building on top of an existing BSP section of Chapter 7.
Adding the meta-virtualization layer
Yocto’s meta-virtualization
layer contains recipes to enable support for cloud tooling. Over time, the project’s emphasis has moved away from virtualization technologies like Xen, KVM, and libvirt to more popular containerization tools. Bruce Ashfield has led the maintenance of meta-virtualization
for more than a decade, working tirelessly to stay abreast of the latest innovations in cloud computing.
There are so many competing containerization tools to choose from, it’s hard to know where to start. The meta-virtualization
layer...