DevOps

How to find docker storage device and its size (device mapper storage driver)

Question: How to find the running docker storage device when docker is using the device-mapper storage driver and then check…

Understanding “docker stats” Command Output

Question: How to monitor a running docker container performance metrics. For example, CPU,memory, I/O and network stats? The docker stats…

Docker Basics – Expose ports, port binding and docker link

This post illustrates three methods to link Docker containers. Expose ports and port binding Expose ports This method is used…

How to add new host entry in /etc/hosts when a docker container is run

This post shows how to add host-entries onto /etc/hosts on docker container when it is run. For the purpose of…

How to Configure Nagios NRPE Client for System Monitoring (CentOS/RHEL)

Question: How to configure CentOS/RHEL system as Nagios NRPE Client so it can be monitored from Nagios-Server for system health/performance?…

How to Trace Python Scripts using trace.py

More and more scripts for administrative tasks on Linux OS are written by Python. This post aims to introduce a…

How to Access Docker Container’s Network Namespace from Host

This post is to illustrate how to access the docker container's network namespace. 1. Identify the docker container id you…

How To Change The Time Zone For A Docker Container

The goal of this post is to set up the timezone on the container to match the same timezone on…

How To Access Kubernetes Dashboard Externally

Following is an alternative workaround to access Dashboard externally. 1. kubernetes-dashboard is a service file which provides dash-board functionality, to…

New User Failed Run Kubectl with Error “The connection to the server xxx.xxx.xxx was refused – did you specify the right host or port?”

The Problem When run kubectl from a new created user, failed with error: The connection to the server xxx.xxx.xxx was…