• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

ctr: command not found

by Deepika

The ctr command is a utility in Linux that is used to control and monitor containerd, a daemon that manages containers on a host. Containerd is a lightweight container runtime that provides an API for managing the life cycle of containers and offers a variety of features such as image management, storage, and networking.

To list all the containers including running and stopped use the below command:

# ctr containers list

This will list all of the containers managed by containerd on the host.

If you encounter the below error while running the command ctr :

ctr: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install containerd
Ubuntu apt-get install containerd
Arch Linux pacman -S containerd
Fedora dnf install containerd
Raspbian apt-get install containerd

ctr Command Examples

1. List all containers (running and stopped):

# ctr containers list

2. List all images:

# ctr images list

3. Pull an image:

# ctr images pull image

4. Tag an image:

# ctr images tag source_image:source_tag target_image:target_tag

Filed Under: Linux

Some more articles you might also be interested in …

  1. ethtool: command not found
  2. CentOS / RHEL 7 : How to follow the mount order in /etc/fstab
  3. ispell: command not found
  4. How to use “btrfs scrub” command to manage scrubbing on Btrfs file systems
  5. fsck: command not found
  6. cewl Command Examples in Linux
  7. bpftrace: command not found
  8. How to use Magic SysRq tool in CentOS / RHEL
  9. goldeneye.py Command Examples in Linux
  10. Sample /etc/multipath.conf file

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright