Some of your Docker Debian-based containers can be killed due to heavy processes running inside the container. If your preferred choice is the
top command, most likely you will get the following error:
top: command not found. Let’s see how to install top inside the container.
- sudo privileges
Step 1. Get into a Docker container shell.
sudo docker exec -it <container-id> /bin/bash
Step 2. Update Debian packages.
sudo apt update
Step 3. Install procps command.
sudo apt install procps
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.