Tag: Containers

Browse all articles, tutorials, and guides about Containers

Guides

Posts

Docker
2025-05-18|7 min read

How Docker Differs from a Virtual Machine (And Why It Matters)

Containers and virtual machines both isolate environments, but they work in very different ways. This guide explains the key differences and when to use each.

Docker
2025-05-04|7 min read

How to Copy Docker Images Between Hosts Without a Repository

Learn how to transfer Docker images directly between machines when a container registry is unavailable or impractical.

Docker
2025-05-03|6 min read

Docker: How to Use Bash with an Alpine Based Docker Image

Want to use bash in your Alpine-based Docker container? Learn why Alpine uses sh by default, how to install bash, and best practices for interactive shells and scripts.

Docker
2025-05-03|6 min read

How to Access a Docker Container's Shell

Learn various ways to get shell access to your Docker containers for debugging, configuration, and maintenance tasks.

Docker
2025-05-02|8 min read

Understanding the Difference Between CMD and ENTRYPOINT in Dockerfiles

Learn how CMD and ENTRYPOINT instructions work, how they interact with each other, and when to use each one for more flexible Docker containers.

Docker
2025-05-02|7 min read

How to Start a Stopped Docker Container with a Different Command

Need to run a different command in a stopped Docker container? Learn your options for changing the startup command, including docker commit, docker run --entrypoint, and best practices for debugging or recovery.

Docker
2025-05-01|7 min read

How to Copy Files from Docker Containers to the Host Machine

Learn efficient ways to extract and retrieve files from your running or stopped Docker containers to your host filesystem.

Docker
2025-05-01|7 min read

How to Get docker-compose to Always Re-create Containers from Fresh Images

Want to make sure docker-compose always uses the latest image and re-creates containers? Learn the right flags, workflow, and best practices to avoid stale containers in development and CI.

Docker
2025-04-30|6 min read

Difference Between Running and Starting a Docker Container

Confused about 'docker run' vs 'docker start'? Learn the difference between running and starting a Docker container, with practical examples and best practices for your workflow.

Docker
2025-04-29|7 min read

How Can I Inspect the File System of a Failed Docker Build?

Want to debug a failed Docker build? Learn practical ways to inspect the build's file system, including interactive debugging with buildkit, temporary containers, and troubleshooting tips.

Docker
2025-04-28|5 min read

docker: 'build' requires 1 argument. See 'docker build --help'

Getting the error 'docker: build requires 1 argument'? Learn what it means, why it happens, and how to fix it with practical examples for your Docker workflow.

Docker
2025-04-27|7 min read

Exposing a Port on a Live Docker Container

Need to access a service running inside a Docker container, but forgot to expose the port? Learn your options for exposing ports on a running container, workarounds, and best practices for future-proof setups.

Docker
2025-04-25|6 min read

How to Use sudo Inside a Docker Container

Need to run commands as root or another user inside your Docker container? Learn when and how to use sudo, why it's often unnecessary, and best practices for secure container builds.

Docker
2025-04-22|6 min read

How to Use docker-compose up for Only Certain Containers

Want to start just a few services from your docker-compose file? Learn how to use docker-compose up to run only specific containers, with practical examples and tips for multi-service projects.

Docker
2025-04-21|5 min

Connecting to Host Machine's Localhost from a Docker Container

Learn how to properly connect to services running on your host machine from within Docker containers

Docker
2025-04-20|6 min

Understanding the Difference Between COPY and ADD in Dockerfiles

Learn when to use COPY vs ADD instructions in your Dockerfiles for better security and build performance

Docker
2025-04-20|6 min read

How Do You Attach and Detach from Docker's Process?

Learn how to attach to a running Docker container's process, interact with it, and safely detach without stopping the container. Includes keyboard shortcuts, practical examples, and troubleshooting tips.

Docker
2025-04-19|7 min read

How to Get the IP Address of the Docker Host from Inside a Docker Container

Need your container to talk to the Docker host? Learn practical ways to discover the host's IP address from inside a container, with examples for Linux, macOS, and Windows.

Docker
2025-01-01|7 min read

What’s the Difference Between Docker Compose vs. Dockerfile?

Understand the key differences between Docker Compose and Dockerfile, and learn when to use each in your containerized workflows.

Docker
2024-12-25|8 min read

Docker Compose: Wait for Container X Before Starting Y

Learn how to configure Docker Compose to ensure one container starts only after another is ready.

Kubernetes
2024-12-22|8 min read

How to Use Local Docker Images with Minikube

Learn different methods to use locally built Docker images in Minikube, including docker-env, image loading, and registry configuration for efficient Kubernetes development.

Docker
2024-12-20|7 min read

How to Upgrade a Docker Container After Its Image Changed

Learn how to upgrade a Docker container to use a new version of its image without downtime.

Docker
2024-12-15|8 min read

How Can I Use Local Docker Images with Minikube?

Learn how to use local Docker images with Minikube for Kubernetes development and testing.

Docker
2024-12-10|8 min read

Communication Between Multiple Docker-Compose Projects

Learn how to enable communication between multiple Docker-Compose projects using shared networks and environment configurations.

Docker
2024-12-05|7 min read

How to Rebuild a Docker Container in docker-compose.yml?

Learn how to rebuild Docker containers defined in a docker-compose.yml file, including tips for managing changes and dependencies.

Docker
2024-12-01|7 min read

What is the Difference Between "Expose" and "Publish" in Docker?

Understanding the difference between 'expose' and 'publish' in Docker is crucial for managing container networking effectively. Learn how these concepts work and when to use them.

Docker
2024-11-30|6 min read

How to Enter a Docker Container Already Running with a New TTY

Learn how to attach to a running Docker container with a new TTY session for debugging or interaction.

Docker
2024-11-25|6 min read

Difference Between RUN and CMD in a Dockerfile

Understand the key differences between RUN and CMD in a Dockerfile, and learn when to use each for building and running Docker containers.

Docker
2024-11-15|7 min read

How to Push a Docker Image to a Private Repository

Learn how to push a Docker image to a private repository, including authentication and best practices for secure image management.

Docker
2024-11-10|7 min read

How Can I Expose More Than One Port with Docker?

Learn how to expose multiple ports in Docker to enable complex containerized applications with multiple services.

Docker
2024-11-08|6 min read

How to Remove Old Docker Containers

Over time, stopped Docker containers pile up and take up space. Learn how to list, filter, and clean up unused containers safely and efficiently.

Docker
2024-11-05|6 min read

Docker: Name is Already in Use by Container

Encountering the 'name is already in use by container' error in Docker? Learn why it happens and how to resolve it effectively.

Docker
2024-11-01|5 min read

How Do I Pass Environment Variables to Docker Containers?

Environment variables are a clean way to configure your Docker containers without hardcoding values. This guide shows different methods and when to use each.

Docker
2024-10-25|4 min read

How to Force Docker for a Clean Build of an Image

Docker caches layers to speed up builds, but sometimes you want a completely fresh image build. Here's how to force Docker to skip the cache and build from scratch.

Docker
2024-10-22|7 min read

Docker Image vs Container: Key Differences

Learn the fundamental difference between Docker images and containers through practical examples and real-world scenarios.

Docker
2024-10-11|5 min read

How to Get a Docker Container's IP Address from the Host

Learn how to find a Docker container's internal IP address from your host machine using simple Docker commands. This is useful for debugging, testing services, or container communication.

Docker
2024-09-18|12 min read

Docker Security Best Practices

Secure your Docker environment from development to production with practical techniques for image hardening, runtime protection, and vulnerability management.

Docker
2024-08-25|10 min read

Exploring a Docker Container's File System

Debug application issues by navigating container file systems, examining logs, and understanding how Docker layers affect your running containers.

Docker
2024-08-01|8 min read

What is the Runtime Performance Cost of a Docker Container?

Understand the runtime performance impact of Docker containers compared to virtual machines and bare-metal systems.

Kubernetes
2024-08-01|5 min read

How to Cleanly List All Containers in a Kubernetes Pod

Learn several ways to list all containers in a Kubernetes pod using kubectl and JSONPath, with practical examples for real-world troubleshooting and automation.

Kubernetes
2024-07-10|6 min read

How Can I Keep a Container Running on Kubernetes?

Learn how to ensure your container stays running on Kubernetes by using proper configurations and best practices.

Docker
2024-06-10|8 min read

How to Run a Docker Image as a Container

Learn how to start a container from a Docker image, pass environment variables, map ports, and manage container lifecycle.

Docker
2024-04-18|8 min read

How to Edit a File After You Shell to a Docker Container

Learn how to edit files inside a running Docker container using shell access, text editors, and best practices for persistent changes.

Docker
2024-03-12|5 min read

Docker: How to Change Repository Name or Rename an Image

Learn how to rename a Docker image or change its repository name using simple Docker CLI commands. This guide covers real-world scenarios and best practices.

Kubernetes
2024-03-12|7 min read

How to Set Multiple Commands in One YAML File with Kubernetes

Learn how to define and run multiple commands in a Kubernetes Pod using a single YAML manifest. This guide covers best practices and real-world examples for multi-step container initialization.

Docker
2024-01-28|4 min read

How to List Containers in Docker

Learn how to list running and stopped Docker containers, filter by status, and get useful details for troubleshooting and management.

Kubernetes
2024-01-10|6 min read

How to Restart a Container Within a Kubernetes Pod

Learn practical ways to restart a container inside a Kubernetes pod, including when and why you might need to do this, and the best approaches for different scenarios.