APURV
  • Home
  • Journey
  • Projects
  • Blogs
  • Interview
  • Exams
Resume
APURV

Building scalable, secure, and production-ready cloud infrastructure. Automation first.

NAVIGATION

HomeExperienceProjectsCertificationsSkills

TECH STACK

AWSGCPK8sCI/CDLinuxDocker

CONNECT

LinkedInGitHubEmailResume

© 2026 Apurv Gujjar. All rights reserved.
Apurv Gujjar
Apurv GujjarDevOps & Cloud Engineer
|Interview Documentation
Portfolio
Handbooks
🎯Linux🐙Git & GitHub🤖GitHub Actions🌐Networking☁AWS🛠Terraform🐳Docker☸Kubernetes📊Monitoring🛡DevSecOps💰Cost Optimization🚨Incident Scenarios👤HR & Behavioral☁GCP🐍Python
Interview DocumentationDocker

Docker

Production Containerization & Architecture Guide for DevOps Engineers

Q1

How would you explain the difference between a container and a virtual machine to someone new to DevOps?

💬Answer
  • Container: A lightweight, isolated runtime instance of a container image. It packages the application code along with all its runtime dependencies, libraries, and configurations. Containers share the host operating system's kernel, making them highly efficient, fast to start, and low-resource.
  • Virtual Machine (VM): A complete virtual emulation of a physical computer. It runs a full guest operating system, virtualized hardware resources, and a hypervisor (like VMware or VirtualBox). This makes VMs more resource-intensive, slower to boot, and heavier to manage. | Feature | Container | Virtual Machine (VM) | | :--- | :--- | :--- | | OS Share | Shares the host OS kernel | Runs a full guest OS | | Boot Time | Seconds | Minutes | | Resource Usage | Lightweight (MBs) | Heavy (GBs) | | Isolation | Process-level (Namespaces/Cgroups) | Hardware-level (Hypervisor) |
Q2

What is Docker, and what specific advantages does it bring to the software development lifecycle?

Q3

Can you walk me through the low-level container runtime stack (runc, containerd, CRI-O)? What actually happens under the hood when 'docker run' executes?

Q4

# Execution flow of `docker run`:

Q5

How does Docker use Linux namespaces to isolate container processes?

Q6

# Key Namespaces used by Docker:

Q7

What are Linux control groups (cgroups), and how does Docker leverage them for resource limits?

Q8

How do containers solve the 'it works on my machine' problem and guarantee consistency in production?

Q9

How does Docker construct image layers, and how does the OverlayFS union file system work under the hood?

Q10

What are Docker multi-stage builds, and why are they recommended for production container security and size optimization?

Q11

# Example Dockerfile:

Q12

# Why they are used:

Q13

When and why should we use Docker Compose instead of launching containers individually?

Q14

# Key Roles:

Q15

If I give you a legacy VM-based application, what step-by-step approach would you take to containerize it?

Q16

How do Linux capabilities, seccomp profiles, AppArmor/SELinux, and Trivy fit into securing containers in production?

Q17

What are your go-to Docker best practices when designing container images for a production environment?

Q18

What is a container escape, and how can we configure containers to prevent them?

Apurv Gujjar - DevOps & Cloud Engineer
Created by

Apurv Gujjar

DevOps & Cloud Engineer

Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio