Docker How Dockerfile Works A Dockerfile is a text file that contains instructions on how to build a Docker image
Docker Where Docker Images are Stored One question that often arises for both newcomers and seasoned Docker users alike is: "Where are Docker images stored?" Understanding the storage location of Docker images is crucial for managing disk space and optimizing Docker performance. Whether you're running Docker on macOS, Windows, or Linux, this
Docker Docker Compose Command Not Found: 3 Possible Causes & Fixes While using Docker Compose, one error that you might encounter is: "Docker Compose Not Found". This error might seem daunting at first glance; however, it usually points to a few common issues that are relatively straightforward to resolve. In this blog post, we'll explore three common
Kubernetes How to Collect Kubernetes Events and Extract Values? Learn what Kubernetes Events are, including their various types. Explore how to collect event data using two key commands: kubectl describe and kubectl get events, and discuss the use of different flags with kubectl get events for enhanced filtering and sorting.
CI/CD How CI/CD Pipeline Works Rapid, consistent, and high-quality software delivery is not just a goal but a necessity, and this has led to the widespread adoption of CI/CD, key components of the broader practices of Agile and DevOps.
Docker How to Fix Docker Build Requires Exactly 1 Argument In this blog post, we'll discuss what causes the docker build requires exactly 1 argument” error and how to resolve it.
Kubernetes Should I Use Kubernetes? In the DevOps world, container orchestration is often synonymous with Kubernetes, a platform for deploying and managing container-based workloads in production. Since its debut in 2014, Kubernetes has seen a meteoric rise in its adoption and popularity. Despite being a relatively new technology, it is now used by a vast
Docker Docker Build Args: What Are They and How to Use Them While building Docker images, there are times when you might need to customize various aspects of the build process. This could involve choosing specific versions of software, enabling or disabling features, or adjusting other build-time configurations to suit your needs. This is where Docker build args come into the picture.
Docker How to Clear Docker Logs for a Container When Docker containers run, they continuously generate log entries, recording everything from system errors to operational information. These logs are essential for troubleshooting and monitoring the health and performance of containers. However, without proper management, these log files can grow to consume significant disk space, potentially leading to issues with
Docker How to Keep Docker Container Running Docker containers are generally designed to run a specific task or process and will remain active for the duration of that process. When the process finishes, the container exits. However, there are scenarios where you might want to keep the Docker container running indefinitely. This could be for debugging, development,
Kubernetes How to Manage Your K8s with K9s Kubernetes CLI learn what K9s is and how it simplifies the monitoring and management of Kubernetes resources.
Bash Scripting Bash Regex: How to Use Regex in a Shell Script In this blog post, we understand what regex is, along with some common metacharacters.
Bash Scripting How to Use Bash Getopts With Examples Getopts is a powerful shell command used to parse command line options and arguments. It provides a structured way to handle complex input patterns, thereby making your scripts more readable and maintainable. In this blog post, we’ll start with an understanding of what positional parameters are and their inherent
Bash Scripting How to Return Value From a Bash Function Bash, one of the most popular shell scripting languages, handles functions a little differently from what you might expect if you're coming from other programming languages. In particular, returning values from Bash functions can be a bit tricky to understand for newcomers. In this blog post, we’ll
Bash Scripting How to Extract Bash Substring Extracting substrings from a larger string is a fundamental operation in text manipulation, which is an essential skill in Bash scripting. In this blog post, we'll explore three methods that you can use to extract substrings in Bash. We will first look at using Bash's built-in
Linux 4 Commands to Check File Size in Linux Whether you need to manage disk space, transfer files over the network, or optimize system performance, knowing the file sizes in a Linux system plays a critical role. In this blog post, we’ll explore four different methods you can use to determine a file's size in Linux.
Bash Scripting Eof Bash: What Is It and How Does It Work? Have you ever come across the term EOF in a Bash script and wondered what it means or how to utilize this feature effectively? If you've found yourself asking these questions, then you're in the right place. In this blog post, we’ll dive deep into
Bash Scripting How to Convert Bash String to Lowercase String manipulation is a fundamental aspect of scripting in any programming language, and Bash is no exception. One such common task is to convert the case of strings, which is particularly useful in text processing and analysis. In this blog post, we’ll explore two methods of converting Bash string
Bash Scripting Bash Compare Strings: How to Check if Two Strings Are Equal Whether you’re validating user input or processing text data, knowing how to compare strings is an important skill. In this blog post, we’ll look at four different methods you can use to check if two strings are equal. We’ll use examples to explain each method, providing you
Bash Scripting How to Make a Bash Script File Executable in Linux A Bash script is essentially a text file containing a series of commands. To make a Bash script file executable means giving it permission to be run as a program. In this blog post, we'll start by taking a deep dive into the concept of file permissions in
Linux How to Search Packages With Apt Search Command When you want to install a package on Debian-based Linux distributions using apt, you need to know the exact name of the package. But what if you don’t remember the name? Maybe you remember a portion of a multi-word package name or a few distinct characters. How do you
Linux How to Count the Number of Files in a Directory in Linux Working with Linux often involves dealing with files. One common but deceptively complex task is counting the number of files in a directory. In this blog post, we will explore three different methods for counting the number of files in a directory, each with its own benefits and nuances. Let’
Bash Scripting How to Check if a File Exists in Bash Let's say you're creating a Bash script to save some data in a file. It's important to ensure that the file exists before you try to write to it. If not, your script may not work as expected. This is just one example. In
Linux How to Find Out When a File Was Created in Linux Keeping track of files in Linux is an important part of system administration. Whether you're investigating a security issue or debugging a program, the details of when a file was created can provide essential insights. In this blog post, we’ll explore three methods of finding out when