Raunak Jain

Raunak Jain

80 Articles Published

Articles by Raunak Jain

Page 4 of 8

How to force a clean build of a Docker Image?

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

When you execute the Docker pull command or Docker run command, the daemon first checks for a similar image in the local machine by comparing the digests of the image. If it finds a match, then it's not required to search the registry for the image and the daemon can simply create a copy of the already existing image. However, if a copy is not found, it starts pulling it from the registry. The same is the case when you try to build images using a Dockerfile. We all know that Docker images are multi-layered files containing multiple image ...

Read More

Running Docker Container as a Non Root User

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

When you run an application inside a Docker Container, by default it has access to all the root privileges. You might have noticed that when you open an Ubuntu Docker Container bash, you are logged in as the root user by default. This can prove to be a major security concern for your application. Any unauthorized access can compromise the entire container along with all the files and applications running inside it. Hence, it becomes very important to perform operations as a non-root user wherever possible. In this article, we will discuss two methods to run Docker containers as ...

Read More

How to get a Docker container's IP address from the host?

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

If you are working with Docker for a long time now, you might already have lots of containers running in your host machine. At times, it becomes really difficult to keep track of all these containers. Moreover, if you are on a network or using compose, there might be several containers running inside the network. In such a case, determining which container is actively running and which has failed, is very difficult. You might need to ping these containers periodically to check their status. For this, you need to have the IP addresses of the containers. You can easily ...

Read More

Top skills that would be handy before taking up a technical role

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

Getting through all the tedious interview rounds of big tech giants for internships and jobs is in itself a big task. But once you clear the interview rounds and secure a job or an internship, the journey does not end there. In fact, this will be the time you need to upskill yourself in order to keep up with the pace of shift in technological stacks that the tech industry goes through. In this article, we will be discussing top skills that would be very handy if you would learn it before taking up the job or internship position. ...

Read More

How to list containers in Docker?

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

Managing multiple Docker containers in a single host machine through a single command line can become tough. Hence, it’s better to know the Docker commands to manage containers the best possible way. Docker provides us with many command line tools and utilities to manage containers. In this article, we will discuss how to list Docker containers through multiple ways. We will also look at how to filter the list output to get the desired results. Listing Docker Containers Predominantly, there are two major commands that you can use to display a list of all containers βˆ’ ...

Read More

How to list images in Docker?

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

Docker provides comprehensive commands to manage Docker objects including images, containers, volumes, and networks. When working with Docker extensively, you may accumulate numerous images on your system. Listing and managing these images efficiently becomes crucial for system organization and resource management. This article explores various methods to list Docker images using different commands and options to filter, format, and display image information according to your specific requirements. Basic Docker Image Listing Commands Docker provides two primary commands for listing images, both yielding identical results: docker image ls [OPTIONS] [REPOSITORY[:TAG]] docker images [OPTIONS] ...

Read More

How to remove old Docker containers?

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

Docker allows you to remove old and stale containers that are no longer needed. You can use the docker rm or docker container rm commands to accomplish this. However, before removing containers, ensure that none are actively running, as Docker will throw an error for running containers. There is a workaround for this βˆ’ you can remove Docker containers forcefully using the --force option. The Docker remove commands allow you to remove one or more containers together by specifying their container IDs or names. If you want to delete all Docker containers simultaneously, you can achieve this using sub-commands. ...

Read More

Vagrant vs Docker for creating an isolated environment

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

Vagrant is a software tool that allows you to create and manage virtual machines that replicate specific environments exactly as needed. Vagrant enables you to test applications in controlled environments by mirroring the operating system and all appropriate configurations through complete virtualization. Docker is a containerization platform that lets you package applications into lightweight containers, creating isolated microenvironments for deployment without running a full virtual machine. Each container provides a separate, isolated environment containing only the necessary application components. Both tools help developers, testers, and DevOps engineers reduce debugging time by ensuring consistent environments across development, testing, and ...

Read More

What is the difference between CMD and ENTRYPOINT in a Dockerfile?

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

Docker containers are built using Dockerfiles which contain step-by-step instructions to define the container environment. Among the various Dockerfile instructions, CMD and ENTRYPOINT are two critical commands that define what processes run inside containers. While they appear similar, they have distinct behaviors and use cases. Before exploring their differences, it's important to understand the two forms of writing instructions in Dockerfiles: Shell Form vs Executable Form Shell Form In shell form, the command is processed by a shell (/bin/sh -c). This allows shell features like variable expansion and command substitution. INSTRUCTION command param1 param2 ...

Read More

What is the difference between the 'COPY' and 'ADD' commands in a Dockerfile?

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

When you create a Dockerfile, you can use two different commands to build your context. Building a context means including the files and directories that you want from your local machine, to be in your container when it's created. These files may be directories in your local machine, a URL from which you want to download files, or a compressed tarball file that you want to include as it is or after extracting the tarball file. We can use two different instructions to add the files from the build context in the local machine to the Docker container. These ...

Read More
Showing 31–40 of 80 articles
« Prev 1 2 3 4 5 6 8 Next »
Advertisements