Raunak Jain

Raunak Jain

80 Articles Published

Articles by Raunak Jain

Page 5 of 8

Running GUI applications on docker in linux

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 649 Views

Running GUI applications inside Docker containers requires connecting the container's display output to the host system's display server. By default, Docker containers cannot access the host's display, making it impossible to run graphical applications. This article demonstrates how to configure Docker containers to run GUI applications like Firefox by forwarding X11 sockets and managing display permissions. X11 Display Forwarding The X11 display server handles graphical output on Linux systems. To run GUI applications in Docker, we need to: Forward the X11 socket to the container Set the DISPLAY environment variable Configure X server authentication permissions ...

Read More

RUN vs CMD vs Entrypoint in Docker

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 5K+ Views

The commands RUN, CMD, and ENTRYPOINT usually cause a lot of confusion among Docker developers. Understanding all three commands conceptually will help to have a clearer understanding of Docker image building and container execution. When we try to build an image using a Dockerfile, the instructions are executed step by step. The first instruction is usually pulling a base image such as an OS distribution like Ubuntu or CentOS. After that, we modify the base image either by including more images using FROM and AS commands or by modifying the images. Every such instruction creates a new intermediate image ...

Read More

Combine multiple images using one dockerfile

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 5K+ Views

When you are working on a large project with Docker, you need to go through certain phases of the development cycle. Maintaining a different dockerfile for each cycle such as build, release, testing etc. consumes significant resources and reduces productivity efficiency. In later versions of Docker, multi-stage Dockerfile functionality allows us to use multiple images in a single Dockerfile with the help of two particular commands − FROM and AS. How Multi-Stage Dockerfiles Work We can use multiple FROM commands combined with AS commands in our Dockerfile where the last FROM command builds the final image. All ...

Read More

Installing Linux Packages Inside a Docker Container

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 4K+ Views

Docker containers provide an isolated environment for running applications. After installing Docker on your Linux machine, you can create custom images by starting with a base OS image and adding packages. This article demonstrates how to install packages inside a Docker container using Ubuntu as the base image. We'll install three essential packages: vim editor, Firefox, and Python 3.7. There are two approaches to accomplish this − using CLI commands step-by-step or creating a Dockerfile for automated builds. Method 1 − Step-by-Step CLI Approach Running the Base Ubuntu Container First, pull and run the Ubuntu image ...

Read More

Mounting a volume inside docker container

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 1K+ Views

Docker volumes provide a way to create shared storage that persists beyond the lifecycle of individual containers. When you have multiple containers that need to share common files, mounting a volume allows all containers to access and modify the same data from a centralized location. This approach is particularly useful in microservices architectures where different containers handle different parts of an application but need to share configuration files, logs, or data files. By mounting a volume to multiple containers, you create a shared filesystem that remains available even when individual containers are stopped or removed. Creating and Managing ...

Read More

Copy Files from Docker Container to Local Machine

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 3K+ Views

If you are working on a project that requires frequent copying of files and folders either from container to your local machine or from the local machine to the container, Docker provides an easy and simple way to do that. If you have already built a Docker image which is of large size and contains a large number of files and in the midst of the project you want to copy files to and from the container, it's highly inefficient to put the files in the Docker build context and build images repeatedly. Instead, Docker allows easy copying of files ...

Read More

Characteristics of SQL

Raunak Jain
Raunak Jain
Updated on 16-Jan-2023 2K+ Views

SQL, or Structured Query Language, is a programming language used for managing and manipulating relational databases. It is the standard language for relational database management systems, such as MySQL, Oracle, and Microsoft SQL Server. In this article, we will explore the characteristics of SQL and how they make it a powerful tool for working with databases. Introduction to SQL SQL is a declarative programming language, meaning that it is used to describe the desired outcome rather than the specific steps to achieve it. This makes it a powerful tool for working with databases because it allows users to focus on ...

Read More

Characterizing Schedules Based on Recoverability

Raunak Jain
Raunak Jain
Updated on 16-Jan-2023 3K+ Views

Introduction In the field of database systems, one of the most important concepts is that of recoverability. Recoverability refers to the ability of a system to restore its state in the event of failure. In order to ensure that a system is recoverable, it is necessary to understand the different types of schedules that can be used, and how they impact the recoverability of a system. In this article, we will explore the various types of schedules that can be used in database systems, and how they impact the recoverability of a system. We will also provide examples of each ...

Read More

Checkpoints in DBMS

Raunak Jain
Raunak Jain
Updated on 16-Jan-2023 13K+ Views

Introduction A checkpoint in a database management system (DBMS) is a process that saves the current state of the database to disk. This allows for faster recovery in the event of a system failure or crash. In this article, we will explore the concept of checkpoints in DBMS, including how they work, the different types of checkpoints, and their real-world applications. What is a Checkpoint? A checkpoint is a process that saves the current state of the database to disk. This includes all transactions that have been committed, as well as any changes that have been made to the database ...

Read More

Characterizing Schedules Based on Serializability

Raunak Jain
Raunak Jain
Updated on 16-Jan-2023 5K+ Views

Introduction In the field of database management systems, concurrency control is an important aspect of maintaining the consistency of data. One of the most widely used methods for ensuring consistency is serializability, which is a concept that characterizes schedules based on their ability to produce the same results as if the transactions were executed one at a time in some order. In this article, we will explore the concept of serializability in scheduling and how it can be used to ensure consistency in a concurrent system. What is Serializability? Serializability is a concept that is used to ensure that the ...

Read More
Showing 41–50 of 80 articles
« Prev 1 3 4 5 6 7 8 Next »
Advertisements