Install ctop on Ubuntu 20.04

Install ctop on Ubuntu 20.04

The ctop is a tool that enables to monitor resources for containers. This tool has support for Docker and runC. The ctop displays CPU, RAM, network, and disk usage of each container.

This tutorial demonstrates how to install ctop on Ubuntu 20.04.

Prepare environment

For demonstration purpose, we will monitor Docker containers. You can read post how to install Docker in your system.

Install ctop

Download GPG key and add it to a list of the trusted keys:

wget -qO - | sudo apt-key add -

Add Azlux's repository:

echo "deb stable main" | sudo tee /etc/apt/sources.list.d/azlux.list

Update the package lists:

sudo apt update

Run the following command to install ctop:

sudo apt install -y docker-ctop

When installation is finished, we can check ctop version:

ctop -v

Testing ctop

Run the ctop command to monitor containers:

Docker containers monitoring using ctop on Ubuntu

You can press CTRL+C to exit ctop.

Uninstall ctop

If you decided to completely remove ctop, run the following command:

sudo apt purge --autoremove -y docker-ctop

Remove GPG key and repository:

sudo apt-key del 0312D8E6
sudo rm -rf /etc/apt/sources.list.d/azlux.list

Leave a Comment

Cancel reply

Your email address will not be published.