Raunak Jain

Raunak Jain

80 Articles Published

Articles by Raunak Jain

Page 2 of 8

How do I get into a Docker container's shell?

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

Docker containers provide isolated environments for applications, and accessing their shell is essential for debugging, testing, and interactive work. Once you have a Docker container, you can work with its environment just like an Ubuntu machine − execute commands, explore the file system, and deploy applications. There are three primary methods to access a Docker container's shell, depending on the container's current state and your specific needs. Method 1: Docker Run Command Use this method when you want to create and run a new container with immediate shell access. The docker run command creates a container from ...

Read More

Searching and pulling Docker Images from Dockerhub

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

The official Docker registry contains a lot of pre-built images and publicly available customized images that are very useful and can be easily pulled by users on their local machine and used as base images for their projects. In fact, you can also build your own customized docker image using one of those publicly available docker images and push it back either in a public or private mode. In this article, we will discuss how to search for a docker image using the search command through the command line interface. We will also see how to filter the search ...

Read More

How do I pass environment variables to Docker containers?

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

Suppose you are using a MySQL Docker container and you want to pass environment variables to your container while running the container. It's always a good idea to isolate the services from the configuration and it's always advised to use environment variables for this purpose. Predominantly, there are three different ways through which we can pass environment variables to our Docker containers. These are by using the -e, --env-file, and the ENV instruction inside the Dockerfile. Let's check out all these methods one by one with examples. Passing Environment Variables Using the --env or -e Flag To ...

Read More

Docker Image tags and how to use them

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

Docker Image tags are simple labels or aliases given to a Docker image before or after building to describe that particular image. Tags can represent the version of the project, features of the image, technologies used, or any descriptive identifier. They play a key role in the overall software development lifecycle by helping track different parts of your project and enabling effective version management. While pulling an image, you can specify the tag of the image you want. If not specified, Docker will pull the latest tagged image automatically. Let's explore the common ways tagging is used when working ...

Read More

How to run a command inside Docker Container?

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

After you build a Docker image and create a running instance of it (a Docker container), you might want to execute commands inside the container to install packages, browse directories, or perform various tasks. Docker provides several methods to access the container environment and execute commands. In this article, we will explore different ways to run commands inside Docker containers. Using Docker exec Command The docker exec command allows you to run commands in a running container from your local machine's command line. First, you need the container ID of the target container. Get Container Information ...

Read More

How does one remove a Docker image?

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

When working with Docker for extended periods, your local machine accumulates unused images from previous downloads, older versions, or testing purposes. These images consume significant disk space and can impact system performance. Additionally, dangling images (untagged images that are no longer referenced) contribute to storage bloat. Docker provides several commands to remove images efficiently: docker image rm, docker rmi, and docker image prune. Each command offers various options for strategic image removal, helping you maintain a clean Docker environment. Basic Image Removal Commands The primary command for removing Docker images is: $ docker image rm ...

Read More

Building a full-fledged data science Docker Container

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

The combination of machine learning and containerization has revolutionized how data scientists develop and deploy applications. Organizations are rapidly adopting machine learning techniques to analyze data and improve customer satisfaction, while Docker containers provide a consistent, portable environment for development and deployment. In this article, we will build a comprehensive data science Docker container with all essential libraries and packages pre-installed. This containerized environment will help you get started with machine learning and data science projects quickly and efficiently. Essential Python Libraries for Data Science Before building our container, let's examine the core Python packages needed for ...

Read More

How is Docker different from a Virtual Machine?

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

When we speak about efficient utilization and proper allocation of computer resources, both virtual machines and Docker containers are effective in their own ways. In the past few years, Docker containers have gained tremendous popularity among organizations of all sizes. It is very important to understand the use-cases and purposes that they both serve if you want to decide which of the two is better for your requirements. However, before we start the discussion make sure that you have the basic knowledge of what Docker is. You can refer to our tutorial on Docker. So without any further ado, ...

Read More

Maintain and Manipulate Docker Containers

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

Knowing how to create a dockerfile and build a docker image using that dockerfile, we can move ahead and dive deep into more advanced ways to manipulate docker containers. When we talk about manipulating docker containers, we include running, listing, restarting, cleaning up the dangling containers, running containers in interactive and detached modes, creating containers using executable images, executing commands inside docker containers using exec command and starting a bash inside a container, accessing logs from a docker container and killing or stopping a docker container. Without any further ado, let's dive deep into manipulating docker containers. Running ...

Read More

How to copy Docker images from one host to another without using a repository?

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

Docker images can be transferred from one host to another without using a repository like Docker Hub. While pushing to a registry is the standard approach, there are several alternative methods that allow direct image transfer between machines without creating accounts or managing repositories. These methods are particularly useful for offline environments, private networks, or when you need to quickly share images without internet access. Let's explore the most effective techniques for copying Docker images directly between hosts. Method 1 − Saving and Loading from TAR Files Docker provides built-in commands to export images as compressed TAR ...

Read More
Showing 11–20 of 80 articles
« Prev 1 2 3 4 5 8 Next »
Advertisements