Created
January 24, 2025 01:34
-
-
Save rytsh/f2332de5e4d8c9d16ee3abcfbd9afdfa to your computer and use it in GitHub Desktop.
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
| #!/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