Nerdctl安装

官网地址

https://github.com/containerd/nerdctl

nerdctl: Docker-compatible CLI for containerd 就是docker兼容的命令行工具

优势

nerdctl 和 docker命令行语法很相似,学习比较容易

  • Same UI/UX as docker
  • Supports Docker Compose (nerdctl compose up)
  • Supports rootless mode, without slirp overhead (bypass4netns)
  • Supports lazy-pulling (Stargz, Nydus, OverlayBD)
  • Supports encrypted images (ocicrypt)
  • Supports P2P image distribution (IPFS)
  • Supports container image signing and verifying (cosign)

一、安装

  1. 最小安装:nerdctl only
#这里只进行最小安装
下载安装包
tar Cxzvvf /usr/local/bin nerdctl-0.23.0-linux-amd64.tar.gz

image

  1. 最大安装:Includes dependencies such as containerd, runc, and CNI

二、使用,直接而参考官方文档

https://github.com/containerd/nerdctl#command-reference
image

三、试试效果

image

还是原来熟悉的配方!!!!!

posted @ 2022-10-19 19:14  弩哥++  阅读(228)  评论(0编辑  收藏  举报