Last active
December 17, 2020 07:53
-
-
Save jeremyje/03e2de221b2592dfb5048b33be1d6d84 to your computer and use it in GitHub Desktop.
Install Containerd on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # curl https://gist.githubusercontent.com/jeremyje/03e2de221b2592dfb5048b33be1d6d84/raw/install-containerd.sh | bash | |
| CONTAINERD_VERSION=1.4.3 | |
| CRITOOLS_VERSION=1.19.0 | |
| curl -L https://github.com/containerd/containerd/releases/download/v${CONTAINERD_VERSION}/containerd-${CONTAINERD_VERSION}-linux-amd64.tar.gz | sudo tar -C /usr/local -xz | |
| sudo curl -L https://raw.githubusercontent.com/containerd/containerd/master/containerd.service -o /etc/systemd/system/containerd.service | |
| sudo systemctl stop containerd.service | |
| sudo systemctl disable containerd.service | |
| sudo chmod 644 /etc/systemd/system/containerd.service | |
| sudo systemctl enable containerd.service | |
| sudo systemctl start containerd.service | |
| curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/v${CRITOOLS_VERSION}/crictl-v${CRITOOLS_VERSION}-linux-amd64.tar.gz | sudo tar -C /usr/local/bin -xz | |
| curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/v${CRITOOLS_VERSION}/critest-v${CRITOOLS_VERSION}-linux-amd64.tar.gz | sudo tar -C /usr/local/bin -xz | |
| sudo containerd config default > /etc/containerd/config.toml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment