Created
December 4, 2023 03:40
-
-
Save yankay/167d359d7f919a380991d99128c440ce to your computer and use it in GitHub Desktop.
快速安装 nerdctl
This file contains 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
cd /tmp | |
export NERDCTL_VERSION=$(curl -s https://api.github.com/repos/containerd/nerdctl/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' ) | |
export NERDCTL_VERSION=${NERDCTL_VERSION:1:100} | |
wget https://files.m.daocloud.io/github.com/containerd/nerdctl/releases/download/v${NERDCTL_VERSION}/nerdctl-${NERDCTL_VERSION}-linux-amd64.tar.gz | |
tar -zxvf nerdctl-${NERDCTL_VERSION}-linux-amd64.tar.gz | |
chmod +x nerdctl | |
mv nerdctl /usr/local/bin/nerdctl | |
nerdctl version | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment