Skip to content

Instantly share code, notes, and snippets.

@islishude
Last active August 22, 2021 11:35
Show Gist options
  • Save islishude/f2b5599a9d356b854501d448acdfe8e5 to your computer and use it in GitHub Desktop.
Save islishude/f2b5599a9d356b854501d448acdfe8e5 to your computer and use it in GitHub Desktop.
install containerd
#!/bin/bash
set -eux
set -o pipefail
export VERSION=1.5.5
wget https://github.com/containerd/containerd/releases/download/v${VERSION}/cri-containerd-cni-${VERSION}-linux-amd64.tar.gz
tar --no-overwrite-dir -C / -xzf cri-containerd-cni-${VERSION}-linux-amd64.tar.gz
mkdir -p /etc/containerd
[[ ! -f /etc/containerd/config.toml ]] && containerd config default | sudo tee /etc/containerd/config.toml
systemctl daemon-reload
systemctl restart containerd
rm cri-containerd-cni-${VERSION}-linux-amd64.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment