Skip to content

Instantly share code, notes, and snippets.

@gabibeyer
Last active February 27, 2019 20:27
Show Gist options
  • Save gabibeyer/79e8e861472c9c428ed37cf67d23a32e to your computer and use it in GitHub Desktop.
Save gabibeyer/79e8e861472c9c428ed37cf67d23a32e to your computer and use it in GitHub Desktop.
Installing containerd with release binary. May need to be root `sudo -E`
#!/bin/bash -e
# some steps require root, so run $sudo -E
# https://github.com/containerd/cri/blob/master/docs/installation.md
export VERSION="1.2.4"
# install libseccomp2
apt-get update
apt-get install libseccomp2
# download source tarball
wget https://storage.googleapis.com/cri-containerd-release/cri-containerd-${VERSION}.linux-amd64.tar.gz
# validate checksum
downloadSHA=$(sha256sum cri-containerd-${VERSION}.linux-amd64.tar.gz | cut -d' ' -f1)
upstreamSHA=$(curl https://storage.googleapis.com/cri-containerd-release/cri-containerd-${VERSION}.linux-amd64.tar.gz.sha256)
if [ "${downloadSHA}" != "${upstreamSHA}" ]; then
echo "checksum mismatch"
exit 1
fi
# install containerd service
tar --no-overwrite-dir -C / -xzf cri-containerd-${VERSION}.linux-amd64.tar.gz
systemctl start containerd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment