How to install containerd on Raspberry Pi
You need to be running at least Raspbian OS with Buster or Raspberry Pi OS (might work with older OS versions too, but I haven’t tested it).
I’ve also updated the system, firmware, apps, etc to the latest version:
|
|
Install Go
We need Go to install runc and containerd.
Download the Go archive (check downloads for other distributions):
|
|
Extract the archive to /usr/local
:
|
|
Add the binary to PATH
(in ~/.profile
or ~/.bash_profile
):
|
|
Set the GOPATH
(get it from go env GOPATH
):
|
|
Reload the shell and verify the installation:
|
|
Install runc
We need runc to spawn and run containers.
Install libseccomp-dev
for seccomp
support:
|
|
|
|
Install containerd
Install btrfs libs and tools:
|
|
Install the tools we need to build protobuf (we assume make
, g++
, curl
and unzip
are already installed):
|
|
Install protobuf (if g++ dies or ld errors, lower the cpu cores used, e.g -j3
, -j2
, -j1
and/or enable overclocking and increase swap):
|
|
IoTest.LargeOutput
test fails, it’s probably just due to the lack of memory.
|
|
Verify the installation:
|
|
Run containerd as a systemd service:
|
|
That’s it, containerd should be up and running.
To test it, follow the getting started guide, or follow the simple guide from rolandjitsu/containerd-oci-import (illustrates how to use local OCI images too).
If you find this post helpful, please consider sponsoring.
Sponsor