Containerd高级命令行工具nerdctl安装及使用
一、实验环境
实验环境:
1、win10笔记本
2、1台centos7.6虚机(vmwrokstation虚机)cri-containerd-cni-1.5.5-linux-amd64.tar.gznerdctl-0.12.1-linux-amd64.tar.gz
二、实验软件
GitHub - containerd/nerdctl: contaiNERD CTL - Docker-compatible CLI for containerd, with support for Compose, Rootless, eStargz, OCIcrypt, IPFS, ...
GitHub - moby/buildkit: concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
三、nerdctl安装
同样直接在 GitHub Release 页面下载对应的压缩包解压到 PATH 路径下即可:
https://github.com/containerd/nerdctl
下载nerdctl-0.12.1-linux-amd64.tar.gz软件包:
# 如果没有安装 containerd,则可以下载 nerdctl-full-<VERSION>-linux-amd64.tar.gz 包进行安装
➜ ~ wget https://github.com/containerd/nerdctl/releases/download/v0.12.1/nerdctl-0.12.1-linux-amd64.tar.gz# 如果有限制,也可以替换成下面的 URL 加速下载
[root@containerd ~]#wget https://download.fastgit.org/containerd/nerdctl/releases/download/v0.12.1/nerdctl-0.12.1-linux-amd64.tar.gz
--2021-10-25 13:13:43-- https://download.fastgit.org/containerd/nerdctl/releases/download/v0.12.1/nerdctl-0.12.1-linux-amd64.tar.gz
Resolving download.fastgit.org (download.fastgit.org)... 88.198.10.254
Connecting to download.fastgit.org (download.fastgit.org)|88.198.10.254|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7528755 (7.2M) [application/octet-stream]
Saving to: ‘nerdctl-0.12.1-linux-amd64.tar.gz’100%[===============================================================================================================================>] 7,528,755 3.31MB/s in 2.2s2021-10-25 13:13:46 (3.31 MB/s) - ‘nerdctl-0.12.1-linux-amd64.tar.gz’ saved [7528755/7528755][root@containerd ~]#ll -h nerdctl-0.12.1-linux-amd64.tar.gz
-rw-r--r-- 1 root root 7.2M Oct 5 15:10 nerdctl-0.12.1-linux-amd64.tar.gz
[root@containerd ~]#
解压软件包到相应目录:
[root@containerd ~]#tar tf nerdctl-0.12.1-linux-amd64.tar.gz #先查看下压缩包文件内容
nerdctl
containerd-rootless-setuptool.sh
containerd-rootless.sh
[root@containerd ~]#mkdir -p /usr/local/containerd/bin && tar -zxvf nerdctl-0.12.1-linux-amd64.tar.gz nerdctl && mv nerdctl /usr/local/containerd/bin
nerdctl
[root@containerd ~]#ln -s /usr/local/containerd/bin/nerdctl /usr/bin/nerdctl
验证:
[root@containerd ~]#nerdctl version
Client:Version: v0.12.1Git commit: 6f0c8b7bc63270404c9f5810a899e6bae7546608Server:containerd:Version: v1.5.5GitCommit: 72cec4be58a9eb6b2910f5d10f1c01ca47d231c0
[root@containerd ~]#
至此,nerdctl安装完成。
安装完成后接下来学习下 nerdctl
命令行工具的使用。
0、nerd帮助命令
[root@containerd ~]#nerdctl
NAME:nerdctl - Docker-compatible CLI for containerdUSAGE:nerdctl [global options] command [command options] [arguments...]VERSION:0.12.1COMMANDS:run Run a command in a new containerexec Run a command in a running containerps List containerslogs Fetch the logs of a container. Currently, only containers created with `nerdctl run -d` are supported.port List port mappings or a specific mapping for the containerstop Stop one or more running containersstart Start one or more running containerskill Kill one or more running containersrm Remove one or more containerspause Pause all processes within one or more containersunpause Unpause all processes within one or more containerscommit [flags] CONTAINER REPOSITORY[:TAG]wait Block until one or more containers stop, then print their exit codes.build Build an image from a Dockerfile. Needs buildkitd to be running.images List imagespull Pull an image from a registrypush Push an image or a repository to a registryload Load an image from a tar archive or STDINsave Save one or more images to a tar archive (streamed to STDOUT by default)tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGErmi Remove one or more imagesevents Get real time events from the serverinfo Display system-wide informationversion Show the nerdctl version informationinspect Return low-level information on objects.top Display the running processes of a containerlogin Log in to a Docker registrylogout Log out from a Docker registrycompose Composecompletion Show shell completionhelp, h Shows a list of commands or help for one commandManagement:container Manage containersimage Manage imagesnetwork Manage networksvolume Manage volumessystem Manage containerdnamespace Manage containerd namespacesGLOBAL OPTIONS:--debug debug mode (default: false)--debug-full debug mode (with full output) (default: false)--address value, -a value, --host value, -H value containerd address, optionally with "unix://" prefix (default: "/run/containerd/containerd.sock") [$CONTAINERD_ADDRESS]--namespace value, -n value containerd namespace, such as "moby" for Docker, "k8s.io" for Kubernetes (default: "default") [$CONTAINERD_NAMESPACE]--snapshotter value, --storage-driver value containerd snapshotter (default: "overlayfs") [$CONTAINERD_SNAPSHOTTER]--cni-path value Set the cni-plugins binary directory (default: "/opt/cni/bin") [$CNI_PATH]--cni-netconfpath value Set the CNI config directory (default: "/etc/cni/net.d") [$NETCONFPATH]--data-root value Root directory of persistent nerdctl state (managed by nerdctl, not by containerd) (default: "/var/lib/nerdctl")--cgroup-manager value Cgroup manager to use ("cgroupfs"|"systemd") (default: "cgroupfs")--insecure-registry skips verifying HTTPS certs, and allows falling back to plain HTTP (default: false)--help, -h show help (default: false)--version, -v print the version (default: false)
[root@containerd ~]#
1、Run&Exec
Containerd高级命令行工具nerdctl安装及使用相关推荐
- linux系统中怎样抓logo,Linux Logo命令行工具的安装和使用
Linux logo是一个命令行工具,这个Linux工具的功能就是能够生成彩色 ANSI 代码,从而制作成为徽标,还能同时显示硬件的信息本文就来介绍一下Linux_Logo命令行工具的安装和使用. l ...
- pycharm不支持svn,是需要svn命令行工具没有安装(for windows)
1. 安装svn命令行工具 Subversion for Windows 下载https://sourceforge.net/projects/win32svn/?source=typ_redirec ...
- babun(一种window下的命令行工具)安装篇
1.下载: 官网:http://babun.github.io/ 站内下载地址(共计4个文件,另外两个还没有显示出来): http://download.csdn.net/detail/mengyou ...
- Ubuntu命令行工具tldr安装
tldr全称 too long, Don't read,翻译成中文就是太长不想阅读,比–help或者man这些传统手册更便捷.更便于使用. 比如说我想查看cp指令的用法 话不多说直接介绍安装方法 su ...
- Ubuntu之make:make命令行工具的简介、安装、使用方法之详细攻略
Ubuntu之make:make命令行工具的简介.安装.使用方法之详细攻略 目录 make命令行工具的简介 make命令行工具的安装 make命令行工具的使用方法 make命令行工具的简介 Ubunt ...
- linux终端命令make,Ubuntu之make:make命令行工具的简介、安装、使用方法之详细攻略...
Ubuntu之make:make命令行工具的简介.安装.使用方法之详细攻略 目录 make命令行工具的简介 make命令行工具的安装 make命令行工具的使用方法 make命令行工具的简介 Ubunt ...
- 爬取网站视频命令行工具you-get的安装及使用方法
爬取网站视频命令行工具you-get安装及使用方法 软件简介 下载方法 Step.01 Step.02 使用方法 报错提示 软件简介 you-get 是一个跨平台命令行视频.音频与图像下载工具,支持国 ...
- android安装命令行工具下载,Command line tools下载-Command line tools(命令行工具)下载 v1.0官方版--pc6下载站...
Commandlinetools命令行工具,如果你不需要AndroidStudio,你可以使用基本Android命令行工具,你可以使用包含的sdkmanager来下载其他SDK包,这些工具都包含在An ...
- linux Ubuntu之make:make命令行工具的简介、安装、使用方法之详细攻略
Ubuntu之make:make命令行工具的简介.安装.使用方法之详细攻略 目录 make命令行工具的简介 make命令行工具的安装 make命令行工具的使用方法 make命令行工具的简介 Ubunt ...
最新文章
- 日志切割清理工具 Log-Cutter
- Vivado中IP核生成文件
- python控制树莓派led_Python 控制树莓派 GPIO 输出:控制 LED 灯
- android7.0uri,整理: 解决Android7.0以上文件报FileUriExposedException问题
- Linux 命令学习Tips
- 当我们安装使用时,会出现eclipse启动不了,出现“Java was started but returned exit code=13......”的问题...
- python执行oracle的sql语句_在oracledb中执行SQL脚本一次执行一条语句
- 去除tableView表头悬浮
- ssm框架重定向_精选 SSM 框架面试题整理
- Internet Explorer 8的新特性和自定义部署
- 【JavaScript】运算符及其优先级
- 2020电子设计大赛——坡道行驶小车
- 吃货联盟订餐系统项目
- 如何做好论文汇报(转载)
- win10右键卡顿问题 简单实用
- stm32中断源有哪些_STM32常见问题汇总
- 白话空间统计之二十五:空间权重矩阵(四)R语言中的空间权重矩阵(5)完结篇:自然临近关系
- malloc,calloc和realloc。
- 随机变量不相关却不一定独立
- Docker仓库认证registry
热门文章
Linux logo是一个命令行工具,这个Linux工具的功能就是能够生成彩色 ANSI 代码,从而制作成为徽标,还能同时显示硬件的信息本文就来介绍一下Linux_Logo命令行工具的安装和使用. l ...
1. 安装svn命令行工具 Subversion for Windows 下载https://sourceforge.net/projects/win32svn/?source=typ_redirec ...
1.下载: 官网:http://babun.github.io/ 站内下载地址(共计4个文件,另外两个还没有显示出来): http://download.csdn.net/detail/mengyou ...
tldr全称 too long, Don't read,翻译成中文就是太长不想阅读,比–help或者man这些传统手册更便捷.更便于使用. 比如说我想查看cp指令的用法 话不多说直接介绍安装方法 su ...
Ubuntu之make:make命令行工具的简介.安装.使用方法之详细攻略 目录 make命令行工具的简介 make命令行工具的安装 make命令行工具的使用方法 make命令行工具的简介 Ubunt ...
Ubuntu之make:make命令行工具的简介.安装.使用方法之详细攻略 目录 make命令行工具的简介 make命令行工具的安装 make命令行工具的使用方法 make命令行工具的简介 Ubunt ...
爬取网站视频命令行工具you-get安装及使用方法 软件简介 下载方法 Step.01 Step.02 使用方法 报错提示 软件简介 you-get 是一个跨平台命令行视频.音频与图像下载工具,支持国 ...
Commandlinetools命令行工具,如果你不需要AndroidStudio,你可以使用基本Android命令行工具,你可以使用包含的sdkmanager来下载其他SDK包,这些工具都包含在An ...
Ubuntu之make:make命令行工具的简介.安装.使用方法之详细攻略 目录 make命令行工具的简介 make命令行工具的安装 make命令行工具的使用方法 make命令行工具的简介 Ubunt ...