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 Server | provisioning ช้า, ยืดหยุ่นน้อย |
| 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
| มิติ | VM | Container |
|---|---|---|
| OS | Guest OS แยกต่างหาก | Share host OS kernel |
| ขนาด | GB | MB |
| Boot time | นาที | วินาที |
| Isolation | สูงมาก | สูง (Hyper-V) หรือปานกลาง (shared kernel) |
| Portability | ต่ำ (OS-dependent) | สูง |
หมายเหตุ: บทความต้นฉบับ (2017) เป็น intro-level — ไม่มี step-by-step configuration ใน source นี้ ดูรายละเอียดเพิ่มเติมใน Proxmox VE สำหรับ LXC containers บน Linux
Related
- Proxmox VE — LXC containers + KVM VMs บน open-source hypervisor
- Proxmox VE Admin Guide — LXC container configuration ใน PVE
🇬🇧 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
| Approach | Issue |
|---|---|
| Physical Server | Slow provisioning, low flexibility |
| Virtual Machine | Still slow — requires full OS setup, configuration, components |
| Container | Everything 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
| Dimension | VM | Container |
|---|---|---|
| OS | Separate Guest OS | Shares host kernel |
| Size | GB | MB |
| Boot time | Minutes | Seconds |
| Isolation | Very high | High (Hyper-V) or moderate (shared kernel) |
| Portability | Low | High |
Note: The source article (2017 blog post) is intro-level only — no configuration steps captured. For Linux containers, see Proxmox VE (LXC).
Related
- Proxmox VE — LXC containers + KVM on open-source hypervisor
- Proxmox VE Admin Guide — Full LXC container configuration