1. Download the dependency package:
1
2
3
wget https://github.com/containerd/containerd/releases/download/v1.6.4/cri-containerd-cni-1.6.4-linux-amd64.tar.gz
# If you cannot reach GitHub, use this mirror instead
# wget https://download.fastgit.org/containerd/containerd/releases/download/v1.6.4/cri-containerd-cni-1.6.4-linux-amd64.tar.gz
  1. Extract:
1
tar -C / -xzf cri-containerd-cni-1.6.4-linux-amd64.tar.gz
  1. Add the configuration file:

The default config file is /etc/containerd/config.toml , generated with the command below.

1
2
mkdir -p /etc/containerd
containerd config default > /etc/containerd/config.toml
  1. Start containerd:
1
systemctl enable containerd --now
  1. Verify containerd:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# ctr version
Client:
  Version:  v1.6.4
  Revision: 72cec4be58a9eb6b2910f5d10f1c01ca47d231c0
  Go version: go1.16.6

Server:
  Version:  v1.6.4
  Revision: 72cec4be58a9eb6b2910f5d10f1c01ca47d231c0
  UUID: 38613830-5cd0-4bc4-81b4-2bcdced721d3