The post outlines the steps to take the backup (snapshot) of docker Container and restore it. Please note that this post mainly discusses committing a container as an image. This works on the container that does not use data volume. For containers with data volume, backup of the data volume must be taken separately. Taking […]
Archives for April 2018
How to mount and umount a file system in Linux
A file system residing on a SATA/PATA or SCSI device needs to be mounted manually to access it. The mount command allows the root user to manually mount a file system. The first argument of the mount command specifies the file system to mount. The second argument specifies the target directory where the file system […]
Understanding the /etc/fstab file in Linux
The file systems and their mount points in the directory tree are configured in the file /etc/fstab. This file contains 1 line with 6 fields for each mounted file system. The lines look similar to the following: Each field provides the following information for mounting the file system: Field 1. Lists the name of the […]
Linux OS Service ‘smartd’
smartd is a daemon that monitors the Self-Monitoring, Analysis and Reporting Technology (SMART) system built into many ATA-3 and later ATA, IDE and SCSI-3 hard drives. The purpose of SMART is to monitor the reliability of the hard drive and predict drive failures, and to carry out different types of drive self-tests. This version of […]
How To Check a Disk for Bad Blocks or Disk Errors on CentOS / RHEL
Hard disks can fail unexpectedly and it is always best to keep recent backups of all important data. Please keep in mind that even if a current or oncoming failure is detected, there may not be enough time to backup the data. Below are several methods that can be used to identify bad blocks or […]
Run Docker as a non-root user
The Docker containers by default run with the root privilege and so does the application that runs inside the container. This is another major concern from the security perspective because hackers can gain root access to the Docker host by hacking the application running inside the container. Method 1 – Add user to Docker group […]
How to Configure Btrfs as the Storage Engine in Docker
Docker is an open platform management tool for Linux Containers. It provides a means for developers and system administrators to build and package applications into lightweight containers. Docker uses devicemapper devices as the default storage engine. To use Btrfs as the storage engine, perform the following steps. Note that Red Hat Enterprise Linux (RHEL) removes […]
How to check failed or bad login attempts in Linux
Invalid login attempts can be tracked using command lastb provided the file /var/log/wtmp is present. Some of the possible causes for incorrect or bad login attempts are given below: due to typo wrong password has been entered during login. password has changed of user used in cron to connect via ssh. If any hacker is […]
How to create Docker Image from a Container and Dockerfile
Docker is an open platform management tool for Linux Containers. It provides a means for developers and system administrators to build and package applications into lightweight containers. Docker consists of the following components: Docker Engine – A portable, lightweight runtime and packaging tool Docker Hub – A cloud service for sharing applications and automating workflows […]
Beginners Guide to The Docker World
Docker: Introduction Docker is an open platform management tool for Linux Containers. It provides a means for developers and system administrators to build and package applications into lightweight containers. Docker consists of the following components: Docker Engine – A portable, lightweight runtime and packaging tool Docker Hub – A cloud service for sharing applications and […]