Windows Containers

🇹🇭 ภาษาไทย

Container คือเทคโนโลยีที่ช่วยให้แอพพิเคชั่นและ dependencies ทั้งหมดถูกบรรจุรวมกันในหน่วยเดียวที่รันได้บน host OS โดยตรง — เบากว่า Virtual Machine เพราะไม่ต้องมี Guest OS ของตัวเอง

ใน Linux/Unix Container (LXC, Docker) มีใช้งานแพร่หลายมาก่อนแล้ว แต่ฝั่ง Windows เพิ่งเพิ่มการรองรับอย่างเป็นทางการใน Windows Server 2016 และ Microsoft Azure (ประกาศโดย Microsoft ปี 2017)

ปัญหาที่ Container แก้ได้

แนวทางเดิมปัญหา
Physical Serverprovisioning ช้า, ยืดหยุ่นน้อย
Virtual Machineยังช้าอยู่ — ต้องเตรียม OS, configuration, components
Containerแพ็คทุกอย่างมาพร้อม — deploy เร็ว, สภาพแวดล้อมสม่ำเสมอ

Container บน Windows (Windows Server 2016+)

  • รองรับ Windows Server Containers — share OS kernel กับ host
  • รองรับ Hyper-V Containers — isolation ระดับ VM แต่ขนาดเล็กกว่า
  • ทำงานร่วมกับ Docker Engine for Windows
  • Azure Container Instances (ACI) — serverless containers บน Azure

เทียบ VM vs Container

มิติVMContainer
OSGuest OS แยกต่างหากShare host OS kernel
ขนาดGBMB
Boot timeนาทีวินาที
Isolationสูงมากสูง (Hyper-V) หรือปานกลาง (shared kernel)
Portabilityต่ำ (OS-dependent)สูง

หมายเหตุ: บทความต้นฉบับ (2017) เป็น intro-level — ไม่มี step-by-step configuration ใน source นี้ ดูรายละเอียดเพิ่มเติมใน Proxmox VE สำหรับ LXC containers บน Linux


🇬🇧 English

Containers package an application and all its dependencies into a single runnable unit that executes directly on the host OS kernel — lighter than VMs because no separate Guest OS is required.

Linux/Unix containers (LXC, Docker) were already widespread before Microsoft added native support in Windows Server 2016 and Microsoft Azure (announced 2017).

Problem Containers Solve

ApproachIssue
Physical ServerSlow provisioning, low flexibility
Virtual MachineStill slow — requires full OS setup, configuration, components
ContainerEverything pre-packaged — fast deployment, consistent environment

Windows Container Types

  • Windows Server Containers — share OS kernel with host; fast, less isolated
  • Hyper-V Containers — VM-level isolation with container footprint
  • Works with Docker Engine for Windows
  • Azure Container Instances (ACI) — serverless containers on Azure

VM vs Container Comparison

DimensionVMContainer
OSSeparate Guest OSShares host kernel
SizeGBMB
Boot timeMinutesSeconds
IsolationVery highHigh (Hyper-V) or moderate (shared kernel)
PortabilityLowHigh

Note: The source article (2017 blog post) is intro-level only — no configuration steps captured. For Linux containers, see Proxmox VE (LXC).