Skip to content

Instantly share code, notes, and snippets.

@rytsh
Created January 24, 2025 01:34
Show Gist options
  • Select an option

  • Save rytsh/f2332de5e4d8c9d16ee3abcfbd9afdfa to your computer and use it in GitHub Desktop.

Select an option

Save rytsh/f2332de5e4d8c9d16ee3abcfbd9afdfa to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
###################
# Containerd
###################
set -e
cd $(dirname $(realpath $0))
mkdir -p tools && cd tools
function nerdctl_full_install() {
curl -fSLO https://github.com/containerd/nerdctl/releases/download/v2.0.3/nerdctl-full-2.0.3-linux-amd64.tar.gz
sudo tar Cxzvf /usr/local nerdctl-full-2.0.3-linux-amd64.tar.gz
}
function containerd_systemd_enable() {
sudo systemctl daemon-reload
sudo systemctl enable --now containerd
}
function nerdctl_permission() {
sudo chown root "$(which nerdctl)"
sudo chmod +s "$(which nerdctl)"
}
nerdctl_full_install
containerd_systemd_enable
nerdctl_permission
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment