• 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 Examples in Linux

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.

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. diff: command not found
  2. CentOS / RHEL : How to find the creation time of LVM volume
  3. bastet: Clone of the game Tetris in the terminal
  4. How to Configure Separate Port For SSH and SFTP On CentOS/RHEL
  5. How to enable Debug Option For CIFS Module in CentOS/RHEL 7 and 8
  6. cpulimit: command not found
  7. autopkgtest: command not found
  8. rofi: command not found
  9. lslocks: command not found
  10. How To Disable MD5-based HMAC Algorithm’s for SSH

You May Also Like

Primary Sidebar

Recent Posts

  • direnv: Shell extension to load and unload environment variables depending on the current directory
  • dircolors: Output commands to set the LS_COLOR environment variable and style ls, dir, etc
  • dillo: A lightweight web browser intended for slow computers
  • dig: DNS lookup utility

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright