来自AI助手的总结
介绍nerdctl常用镜像和容器管理命令。

一、列出镜像
$ nerdctl images
二、删除镜像
$ nerdctl rmi xxx
三、拉取镜像
$ nerdctl pull busybox:latest
四、运行容器
$ nerdctl run -td busybox:latest sh
五、列出容器
$ nerdctl ps -a #-a加上后,会列出未启动的容器
六、停止容器
$ nerdctl stop 容器id
七、删除容器
$ nerdctl rm 容器id
八、查看容器日志
$ nerdctl run -td nginx:latest
$ nerdctl logs 容器id
九、进入容器
$ nerdctl exec -it 容器id bash
十、查看容器信息
$ nerdctl inspect 容器id
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END






暂无评论内容