Docker Articles

Page 6 of 12

Vagrant vs Docker for creating an isolated environment

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 443 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 669 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

Top 5 Features of Using Docker Swarm

Aadyaa Srivastava
Aadyaa Srivastava
Updated on 17-Mar-2026 643 Views

Docker Swarm is a powerful container orchestration tool that manages multiple Docker containers across different hosts. It allows developers and IT teams to seamlessly deploy, scale, and manage containerized applications by abstracting the complexity of managing multiple containers and hosts into a simple, unified interface. Docker Swarm transforms a cluster of Docker nodes into a single virtual system. It groups containers together using the concept of services to construct applications, while providing load balancing and automatic container recovery during failures. Its straightforward setup works on both on-premises systems and cloud infrastructure, making it an accessible solution for container orchestration. ...

Read More

Top 20 Essential Docker Commands You Should Know in 2023

Devang Delvadiya
Devang Delvadiya
Updated on 17-Mar-2026 319 Views

Docker is a powerful containerization platform that enables developers to package applications and their dependencies into lightweight, portable containers. Understanding Docker commands is essential for efficient container management, from creating and running containers to troubleshooting and maintaining them in development and production environments. What is Docker? Docker is a free and open-source platform that facilitates container development, administration, and operation in remote or local environments. It provides OS-level virtualization through containers, allowing applications to run consistently across different environments. As a Platform as a Service (PaaS) tool, Docker simplifies application deployment by bundling apps with their dependencies into ...

Read More

Connecting From Docker Containers to Resources in Host

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 3K+ Views

Docker containers are isolated environments that run applications separately from the host system. While this isolation provides security and consistency, there are legitimate scenarios where containers need to access host resources such as databases, files, or services. This article explores various methods to establish connectivity between Docker containers and host system resources. Host Network Access The simplest approach is to configure containers to use the host network directly. This removes network isolation and allows the container to access all host services as if running natively on the host. docker run --network=host my-container Use case: ...

Read More

Pentesting using Docker

Ajay yadav
Ajay yadav
Updated on 16-Mar-2026 359 Views

Penetration testing using Docker provides security professionals with an efficient way to deploy and test vulnerable applications in isolated environments. Docker containers offer a clean, reproducible setup for security assessments without affecting the host system. Docker is a containerization platform that packages applications with all their dependencies into lightweight, portable containers. This makes it ideal for quickly setting up vulnerable web applications like DVWA (Damn Vulnerable Web Application) for penetration testing practice. Installing Docker Before setting up vulnerable applications, install Docker on your system using these commands: apt update apt install docker.io systemctl start docker ...

Read More

What is Docker Health Check?

Raju Dandigam
Raju Dandigam
Updated on 19-Mar-2025 230 Views

Docker has changed the way we develop, package, and run applications by providing a means of packaging applications and their dependencies into lightweight containers. However, it is just as important to ensure that your containers are healthy and running as it is to get them deployed. This is where Docker Health Checks come in. Why Do We Need Docker Health Checks? When you are running your applications in Docker containers, just checking whether the container is ‘running’ is not enough. A container can be started, but may be stuck in an infinite loop, waiting for a connection, or experiencing ...

Read More

How to Dockerize a Golang Application?

Raju Dandigam
Raju Dandigam
Updated on 17-Mar-2025 185 Views

Deploying a Golang application directly across different environments can be very complex and inconsistent. Other problems include managing dependencies, configuring for different operating systems, and environmental differences. Dockerizing the application makes it easier to guarantee that it will run correctly in any environment by packaging it and its dependencies into a container. Prerequisites Before you start, make sure you have the following installed: Golang (latest stable version) Docker (Docker Desktop or CLI) Basic knowledge of Golang and Docker Approaches to Dockerizing a Golang Application There ...

Read More

How to Dockerize an ExpressJS App?

Raju Dandigam
Raju Dandigam
Updated on 07-Mar-2025 239 Views

To dockerize an ExpressJS app, we will be going through a detailed stepwise explanation in this article. Containerization is becoming an essential in the software development process to ensure that the software is developed and deployed in different environments and in a consistent manner. Docker is the most popular containerization tool that helps in packaging an app and its dependencies. Problem Statement This article focuses on the challenges of deploying Node.js applications due to dependency conflicts, environmental issues, and system-specific settings. In the traditional way of deployment, the runtime environment has to be set up manually which resulted in ...

Read More
Showing 51–60 of 111 articles
« Prev 1 4 5 6 7 8 12 Next »
Advertisements