Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Microk8s.ctr Command Line and containerd

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Xiaobian to share with you how to use Microk8s.ctr command line and containerd, I hope you have something to gain after reading this article, let's discuss it together!

Microk8s.ctr is a command for container management (containerd, https://containerd.io) under microk8s. Let's explore its parameters.

The main command ubuntu@ubuntu:/etc/systemd/system$ sudo microk8s.ctr NAME: ctr - __ _____/ /______ / ___/ __/ ___// /__/ /_/ /\___/\__/_/containerd CLIUSAGE: ctr [global options] command [command options] [arguments...] VERSION: v1.2.5COMMANDS: plugins, plugin provides information about containerd plugins version print the client and server versions containers, c, container manage containers content manage content events, event display containerd events images, image, i manage images leases manage leases namespaces, namespace manage namespaces pprof provide golang pprof outputs for containerd run run a container snapshots, snapshot manage snapshots tasks, t, task manage tasks install install a new package shim interact with a shim directly cri interact with cri plugin help, h Shows a list of commands or help for one commandGLOBAL OPTIONS: --debug enable debug output in logs --address value, -a value address for containerd's GRPC server (default: "/run/containerd/containerd.sock") --timeout value total timeout for ctr commands (default: 0s) --connect-timeout value timeout for connecting to containerd (default: 0s) --namespace value, -n value namespace to use with commands (default: "default") [$CONTAINERD_NAMESPACE] --help, -h show help --version, -v print the version View container image ubuntu@ubuntu:/etc/systemd/system$ sudo microk8s.ctr imagesNAME: ctr images - manage imagesUSAGE: ctr images command [command options] [arguments...] COMMANDS: check check that an image has all content available locally export export an image import import images list, ls list images known to containerd pull pull an image from a remote push push an image to a remote remove, rm remove one or more images by reference label set and clear labels for an imageOPTIONS: --help, -h show help ubuntu@ubuntu:/etc/systemd/system$ sudo microk8s.ctr images lsREF TYPE DIGEST SIZE PLATFORMS LABELS Look at containers Examples ubuntu@ubuntu:/etc/systemd/system$ sudo microk8s.ctr containers lsCONTAINER IMAGE RUNTIME ubuntu@ubuntu:/etc/systemd/system$ sudo microk8s.ctr containersNAME: ctr containers - manage containersUSAGE: ctr containers command [command options] [arguments...] COMMANDS: create create container delete, del, rm delete one or more existing containers info get info about a container list, ls list containers label set and clear labels for a containerOPTIONS: --help, -h show help After reading this article, I believe you have a certain understanding of "Microk8s.ctr command line and how to use containerd". If you want to know more about it, please pay attention to the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report