Container runtime maintenance tasks
In this section, we are going to take a quick look at some housekeeping actions that are available for maintaining our container runtime.
Maintaining the right amount of storage available in your host is a very important task. Depending on your container runtime, you may have to prune certain objects instead of using a general tool. This happens, for example, with the containerd
client called nerdctl
. If you are using Rancher Desktop, you will need to specifically remove unnecessary objects per category. Let’s review how this can be done with the Docker client using docker system prune
. But before you prune your system and clean old objects, you should first understand where the disk space has been used.
To review the actual amount of disk that’s been allocated to different objects, we can use the docker system
df
command:
$ docker system df TYPE TOTAL&...