Upgrade Containerd to 2.x

published at 2025-01-16, by José Luis Salvador Rufo.

Containerd has upgraded from 1.x to 2.x, which also introduces changes to its configuration file.

Follow these steps to upgrade Containerd:

  1. Ensure you are using at least SimpleK8s version 202501171928, download it here.
  2. Stop the Containerd service:
    systemctl stop containerd
    
  3. Restore Containerd binary from factory:
    cp /usr/share/factory/usr/local/bin/containerd /usr/local/bin/containerd
    
  4. Delete the deprecated configuration file:
    rm /etc/containerd/config.toml
    
  5. Restart the Containerd service. The configuration file (/etc/containerd/config.toml) will be recreated automatically.
    systemctl start containerd