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 DocumentationDockerWhat are Linux control groups (cgroups), and how does Docker leverage them for resource limits?
Back to all Docker questions
Q7

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

💬Answer

Control Groups (cgroups) are a Linux kernel feature that enforces resource limits and metering on processes. Docker uses cgroups to guarantee that containers do not monopolize host resources. It controls limits for:

  • CPU: Allocate specific cores or limit CPU execution cycles (e.g., --cpus=2).
  • Memory: Set maximum RAM and swap thresholds (e.g., -m 512m to prevent out-of-memory issues on the host).
  • I/O: Limit block device write/read bandwidth.

Related Docker Questions

View All DockerQuestions →
Q1

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

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`:

Apurv Gujjar - DevOps & Cloud Engineer
Created by

Apurv Gujjar

DevOps & Cloud Engineer

Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio