For system, network and cloud administrators

How to extract .rar archives/files in Linux

All over the web, you might encounter some much needed files are archived using RAR, like your Linux course certification files, for example. That’s when, it’s useful to know how to extract them using the proper software.


How to fix “Could not resolve host: mirrorlist.centos.org; Unknown error”

This can happen after a fresh installation of CentOS. The /etc/resolv.conf is looking for a DNS that it can use but after a fresh installation, it usually comes empty. So, if the file has no DNS to look after, then it can not resolve hostnames. This should tell you that the current machine is using the wrong DNS server.


How to view the size of your Docker containers

I came across situations where I needed tot test which Docker image would be most suitable for a particular set of needs and one of those metrics that I used was disk space. I remember the more I used to get started with Docker, the more I was curious to see which Docker images consume more or less resources.


How to view the IP of a Docker container

In order to view the IP of a Docker container, you can execute the following command:

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container-ID-or-name

How to run Docker in debug mode and view container logs?

  1. Execute the Docker events command:
docker events &
How to run Docker in debug mode and view container logs? Docker events command.
Docker events command

By this point, any Docker command that you’ll run next will be viewed with more logs.


Follow BusyNetwork