Skip to content
IROSG.
Articles

What is a container? Docker, namespaces, cgroups and VMs

An original source-backed IROSG IT guide.

What is a container? Docker, namespaces, cgroups and VMs

Scope

This original IROSG guide covers مدل اجرای container و تفاوت آن با virtualization using the cited primary documentation.

Core model

Container معمولاً kernel میزبان را share می‌کند و با namespaceها دید process، network، mount و user را جدا می‌کند؛ cgroup نیز مصرف منابع را محدود و اندازه‌گیری می‌کند. Image لایه‌های filesystem و metadata اجرای application را حمل می‌کند.

Practical workflow

docker inspect، /proc، nsenter و cgroup filesystem را کنار CLI معمولی Docker ببینید. این مشاهده کمک می‌کند بفهمید container daemon جادو نمی‌کند؛ primitiveهای Linux را orchestrate می‌کند.

Failure modes

Container boundary را معادل VM boundary ندانید. kernel مشترک، privilege اضافی، mount حساس یا socket Docker می‌تواند isolation را به‌شدت ضعیف کند.

Lab

یک container اجرا کنید، PID داخل و خارج را مقایسه کنید، network namespace را پیدا کنید، memory limit بگذارید و رفتار process هنگام عبور از limit را ثبت کنید.

Production method

Capture a baseline, change one variable at a time, test positive and negative paths, keep evidence, and rehearse rollback before broad rollout.

TRACEABLE KNOWLEDGE

Sources & further reading

01
Docker — مرجع فنیhttps://www.docker.com/resources/what-container/

Editorial review date:

IROSG / EDITORIAL

News and pioneer profiles use original writing with source attribution. Image credits and licenses are kept in each page’s sources section instead of beneath the images. CVE reference data credits its primary sources.

Editorial and image policy ↗

Keep exploring.

Articles ↗
VyOS network operating systemArticles
Networking

VyOS network operating system

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story
Routinator RPKI validatorArticles
Networking

Routinator RPKI validator

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story
ISC Kea DHCP High AvailabilityArticles
Networking

ISC Kea DHCP High Availability

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story